[Buix-commits] r445 - in trunk/lutinvcs: lutinvcs-ui-common/src/main/java/org/codelutin/vcs/ui lutinvcs-ui-jaxx/src/main/uimodel/org/codelutin/vcs/ui
Author: tchemit Date: 2008-04-11 02:52:20 +0000 (Fri, 11 Apr 2008) New Revision: 445 Removed: trunk/lutinvcs/lutinvcs-ui-common/src/main/java/org/codelutin/vcs/ui/AbstractTabUI.java trunk/lutinvcs/lutinvcs-ui-jaxx/src/main/uimodel/org/codelutin/vcs/ui/JDiffUI.jaxx Log: old Deleted: trunk/lutinvcs/lutinvcs-ui-common/src/main/java/org/codelutin/vcs/ui/AbstractTabUI.java =================================================================== --- trunk/lutinvcs/lutinvcs-ui-common/src/main/java/org/codelutin/vcs/ui/AbstractTabUI.java 2008-04-11 02:51:22 UTC (rev 444) +++ trunk/lutinvcs/lutinvcs-ui-common/src/main/java/org/codelutin/vcs/ui/AbstractTabUI.java 2008-04-11 02:52:20 UTC (rev 445) @@ -1,104 +0,0 @@ -/** - * # #% Copyright (C) 2008 Code Lutin, Tony Chemit - * This program is free software; you - * can redistribute it and/or modify it under the terms of the GNU General - * Public License as published by the Free Software Foundation; either version 2 - * of the License, or (at your option) any later version. This program is - * distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; - * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A - * PARTICULAR PURPOSE. See the GNU General Public License for more details. You - * should have received a copy of the GNU General Public License along with this - * program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - * - Suite 330, Boston, MA 02111-1307, USA. - * # #% - */ -package org.codelutin.vcs.ui; - -import org.codelutin.vcs.type.VCSEntryLocation; -import org.codelutin.vcs.ui.handler.AbstractTabUIHandler; -import org.codelutin.vcs.ui.model.AbstractTabUIModel; - -import javax.swing.JPanel; -import javax.swing.JScrollPane; -import javax.swing.JTable; -import javax.swing.JToggleButton; -import javax.swing.AbstractButton; -import java.awt.CardLayout; - -/** @author chemit */ -public abstract class AbstractTabUI extends AbstractUI { - - public abstract jaxx.runtime.swing.JAXXButtonGroup getTabs(); - - public abstract JToggleButton getAllTab(); - - public abstract JToggleButton getLocalTab(); - - public abstract JToggleButton getRemoteTab(); - - public abstract JScrollPane getAllContent(); - - public abstract JScrollPane getLocalContent(); - - public abstract JScrollPane getRemoteContent(); - - public abstract JTable getAllTable(); - - public abstract JTable getLocalTable(); - - public abstract JTable getRemoteTable(); - - public abstract JPanel getPreview(); - - public abstract CardLayout getCardLayout(); - - public AbstractTabUI() { - super(); - } - - public AbstractTabUI(AbstractTabUIHandler handler, AbstractTabUIModel model) { - super(handler, model); - } - - @Override - public AbstractTabUIModel getModel() { - return (AbstractTabUIModel) model; - } - - @Override - protected AbstractTabUIHandler getHandler() { - return (AbstractTabUIHandler) handler; - } - - public JTable getTable(VCSEntryLocation modelName) { - switch (modelName) { - case ALL: - return getAllTable(); - case LOCAL: - return getLocalTable(); - case REMOTE: - return getRemoteTable(); - case UNKNOW: - break; - } - throw new IllegalStateException("no table found for " + modelName); - } - - public AbstractButton getButton(VCSEntryLocation modelName) { - switch (modelName) { - case ALL: - return getAllTab(); - case LOCAL: - return getLocalTab(); - case REMOTE: - return getRemoteTab(); - case UNKNOW: - return null; - } - throw new IllegalStateException("no popup found for " + modelName); - } - - protected void setLocation(VCSEntryLocation location) { - getModel().setLocation(location); - } -} Deleted: trunk/lutinvcs/lutinvcs-ui-jaxx/src/main/uimodel/org/codelutin/vcs/ui/JDiffUI.jaxx =================================================================== --- trunk/lutinvcs/lutinvcs-ui-jaxx/src/main/uimodel/org/codelutin/vcs/ui/JDiffUI.jaxx 2008-04-11 02:51:22 UTC (rev 444) +++ trunk/lutinvcs/lutinvcs-ui-jaxx/src/main/uimodel/org/codelutin/vcs/ui/JDiffUI.jaxx 2008-04-11 02:52:20 UTC (rev 445) @@ -1,97 +0,0 @@ -<AbstractDiffUI title='lutinvcs.diff.title' modal="true" defaultCloseOperation='DISPOSE_ON_CLOSE' - height='600' width='500'> - <style source="common.css"/> - <java.awt.CardLayout id='cardLayout'/> - - <Table> - <row fill='both'> - <cell fill='both' weightx='1'> - <JToolBar> - <JToggleButton id='allTab' selected='false' buttonGroup='tabs' mnemonic="A" - toolTipText="lutinvcs.tabs.diff.tooltip.all" - icon='{createImageIcon("remote_vs_local.png")}' - onActionPerformed='setLocation(org.codelutin.vcs.type.VCSEntryLocation.ALL)'/> - <JToggleButton id='localTab' selected='false' buttonGroup='tabs' mnemonic="L" - toolTipText="lutinvcs.tabs.diff.tooltip.local" - icon='{createImageIcon("local_vs_local.png")}' - onActionPerformed='setLocation(org.codelutin.vcs.type.VCSEntryLocation.LOCAL)'/> - <JToggleButton id='remoteTab' selected='false' buttonGroup='tabs' mnemonic="R" - icon='{createImageIcon("remote_vs_remote.png")}' - toolTipText="lutinvcs.tabs.diff.tooltip.remote" - onActionPerformed='setLocation(org.codelutin.vcs.type.VCSEntryLocation.REMOTE)'/> - - - <JButton id='nextDiff' toolTipText="lutinvcs.action.tooltip.nextDiff" - icon='{createImageIcon("diff-next.png")}' onActionPerformed='gotoNextDiff()'/> - - <JButton id='previousDiff' toolTipText="lutinvcs.action.tooltip.previousDiff" - icon='{createImageIcon("diff-prev.png")}' onActionPerformed='gotoPreviousDiff()'/> - - <JButton id='refresh' toolTipText="lutinvcs.action.tooltip.refresh" - icon='{createImageIcon("autoRefresh.png")}' - onActionPerformed='doAction(org.codelutin.vcs.type.VCSAction.REFRESH)'/> - - <JButton id='update' toolTipText="lutinvcs.action.tooltip.update" - icon='{createImageIcon("update.png")}' - onActionPerformed='doAction(org.codelutin.vcs.type.VCSAction.UPDATE)'/> - - <JButton id='commit' toolTipText="lutinvcs.action.tooltip.commit" - icon='{createImageIcon("commit.png")}' - onActionPerformed='doAction(org.codelutin.vcs.type.VCSAction.COMMIT)'/> - - <JButton id='revert' toolTipText="lutinvcs.action.tooltip.revert" - icon='{createImageIcon("rollback.png")}' - onActionPerformed='doAction(org.codelutin.vcs.type.VCSAction.REVERT)'/> - - <JButton id='delete' toolTipText="lutinvcs.action.tooltip.delete" - icon='{createImageIcon("remove.png")}' - onActionPerformed='doAction(org.codelutin.vcs.type.VCSAction.DELETE)'/> - </JToolBar> - </cell> - </row> - <row fill='both'> - <cell fill='both'> - <JPanel id='preview' layout='{cardLayout}'> - <JScrollPane id='allContent' styleClass='diffScroll' constraints='"taball"' height='100'> - <JTable id="allTable" styleClass='diffTable' onMouseClicked="selectFile()" selectionMode="0"/> - </JScrollPane> - <JScrollPane id='localContent' styleClass='diffScroll' constraints='"tablocal"' height='100'> - <JTable id="localTable" styleClass='diffTable' onMouseClicked="selectFile()" selectionMode="0"/> - </JScrollPane> - <JScrollPane id='remoteContent' styleClass='diffScroll' constraints='"tabremote"' height='100'> - <JTable id="remoteTable" styleClass='diffTable' onMouseClicked="selectFile()" - selectionMode="0"/> - </JScrollPane> - </JPanel> - </cell> - </row> - <row fill='both'> - <cell fill='both' weighty='1' weightx='1'> - <JSplitPane id='splitPane2' orientation='horizontal' resizeWeight="0.5" dividerLocation="{0.5}"> - <JScrollPane id='remoteEditorScroll' styleClass='diffScroll'> - <JTextArea id="remoteEditorContent" editable='false'/> - </JScrollPane> - <JScrollPane id='localEditorScroll' styleClass='diffScroll'> - <JTextArea id="localEditorContent"/> - </JScrollPane> - </JSplitPane> - - <!--Table fill='both'> - <row> - <cell fill='both' weighty='1' weightx='1'> - <JScrollPane id='remoteScroll' styleClass='diffScroll'> - <JTextArea id="remoteEditorContent" editable='false' constructorParams="20,80"/> - </JScrollPane> - </cell> - <cell fill='both' weighty='1' weightx='1'> - <JScrollPane id='localScroll' styleClass='diffScroll'> - <JTextArea id="localEditorContent" constructorParams="20,80"/> - </JScrollPane> - </cell> - </row> - </Table--> - </cell> - - </row> - </Table> -</AbstractDiffUI>
participants (1)
-
tchemit@users.labs.libre-entreprise.org