<?xml version="1.0" encoding="UTF-8"?>
<?pde version="3.5"?>
-<product name="SLC" uid="org.argeo.slc.client.rcp.product" application="org.argeo.security.ui.application.secureUi" version="1.0.0.qualifier" useFeatures="false" includeLaunchers="false">
+<product name="SLC" uid="org.argeo.slc.client.rcp.product" id="org.argeo.slc.client.rcp.product" application="org.argeo.slc.client.rcp.application" version="1.0.0.qualifier" useFeatures="false" includeLaunchers="false">
<configIni use="default">
</configIni>
<plugin id="org.argeo.slc.client.ui.dist"/>
<plugin id="org.argeo.slc.core"/>
<plugin id="org.argeo.slc.demo.agent" fragment="true"/>
- <plugin id="org.argeo.slc.demo.ant"/>
+ <plugin id="org.argeo.slc.demo.ant" fragment=""/>
<plugin id="org.argeo.slc.demo.basic"/>
<plugin id="org.argeo.slc.demo.log4j" fragment="true"/>
<plugin id="org.argeo.slc.detached"/>
org.eclipse.equinox.http.registry,\
org.eclipse.equinox.launcher,\
org.mortbay.jetty.server,\
-org.springframework.osgi.extender,\
+org.argeo.security.equinox,\
org.argeo.security.manager.ldap,\
org.argeo.security.services,\
-org.argeo.security.equinox,\
-org.argeo.security.ui,\
-org.argeo.security.ui.application,\
+org.argeo.server.ads.server,\
org.argeo.slc.agent,\
org.argeo.slc.client.agent,\
+org.argeo.slc.client.commons,\
+org.argeo.slc.client.core,\
org.argeo.slc.client.hibernate,\
org.argeo.slc.client.oxm,\
+org.argeo.slc.client.rap,\
org.argeo.slc.client.ui,\
org.argeo.slc.demo.ant,\
org.argeo.slc.demo.basic,\
+org.argeo.slc.demo.ant,\
org.argeo.slc.server.castor,\
org.argeo.slc.server.h2,\
org.argeo.slc.server.hibernate,\
org.argeo.slc.server.services,\
-org.argeo.server.ads.server,\
-
-
-org.argeo.security.ui.initialPerspective=org.argeo.slc.client.ui.perspectives.slcExecution
-
-# LDAP
-#argeo.ldap.rootdn=dc=slc,dc=argeo,dc=net
-#argeo.ads.init.ldif=osgibundle:init-slc.ldif
+org.springframework.osgi.extender,\
eclipse.ignoreApp=true
osgi.noShutdown=true
+org.argeo.security.ui.initialPerspective=org.argeo.slc.client.ui.perspectives.slcExecution
+
log4j.configuration=file:../../log4j.properties
org.eclipse.equinox.http.jetty.log.stderr.threshold=debug
org.osgi.service.http.port=9090
-# java -Dlog4j.configuration=file:/home/mbaudier/dev/src/slc/demo/log4j.properties -Dosgi.framework=lib/org.eclipse.osgi_3.6.1.R36x_v20100806.jar -jar lib/org.eclipse.equinox.launcher_1.1.0.v20100507.jar -console -configuration configuration
\ No newline at end of file
+
+# LDAP
+#argeo.ldap.rootdn=dc=slc,dc=argeo,dc=net
+#argeo.ads.init.ldif=osgibundle:init-slc.ldif
\ No newline at end of file
Bundle-ActivationPolicy: lazy
Import-Package: javax.servlet;version="2.4.0",
javax.servlet.http;version="2.4.0",
+ org.argeo.security.ui.application,
org.argeo.slc.client.ui.perspectives
<plugin>\r
\r
<extension\r
- id="org.argeo.slc.client.rcp.product"\r
+ id="org.argeo.slc.client.rap.product"\r
point="org.eclipse.core.runtime.products">\r
<product\r
name="Slc RAP Product"\r
<extension\r
point="org.eclipse.rap.ui.entrypoint">\r
<entrypoint\r
- class="org.argeo.slc.client.rap.SlcClientRapApplication"\r
+ class="org.argeo.slc.client.rap.SlcSecureRap"\r
parameter="slc"\r
- id="org.argeo.slc.client.rap.SlcClientRapApplication">\r
+ id="org.argeo.slc.client.rap.slcSecureRap">\r
</entrypoint>\r
</extension>\r
\r
name="Exit">\r
</command> \r
</extension> -->\r
- \r
</plugin>\r
<version>${version.argeo-commons}</version>
</dependency>
- <!-- Eclipse -->
- <!-- <dependency> <groupId>org.eclipse.ui</groupId> <artifactId>org.eclipse.ui</artifactId>
- </dependency> <dependency> <groupId>org.eclipse.core</groupId> <artifactId>org.eclipse.core.runtime</artifactId>
- </dependency> <dependency> <groupId>org.eclipse.swt</groupId> <artifactId>org.eclipse.swt.gtk.linux.x86_64</artifactId>
- </dependency> <dependency> <groupId>org.eclipse.swt</groupId> <artifactId>org.eclipse.swt.gtk.linux.x86</artifactId>
- </dependency> -->
+ <!-- Argeo common distribution for Secured UI -->
+ <dependency>
+ <groupId>org.argeo.commons.security</groupId>
+ <artifactId>org.argeo.security.ui.application</artifactId>
+ <version>${version.argeo-commons}</version>
+ </dependency>
</dependencies>
</project>
private static final String PERSPECTIVE_ID = "org.argeo.slc.client.ui.perspectives.slcExecution";
public WorkbenchWindowAdvisor createWorkbenchWindowAdvisor(IWorkbenchWindowConfigurer configurer) {
- return new ApplicationWorkbenchWindowAdvisor(configurer);
+ return new SlcRapSecureWorkbenchWindowAdvisor(configurer);
}
public String getInitialWindowPerspectiveId() {
+++ /dev/null
-package org.argeo.slc.client.rap;
-
-import org.eclipse.swt.graphics.Point;
-import org.eclipse.ui.application.ActionBarAdvisor;
-import org.eclipse.ui.application.IActionBarConfigurer;
-import org.eclipse.ui.application.IWorkbenchWindowConfigurer;
-import org.eclipse.ui.application.WorkbenchWindowAdvisor;
-
-/**
- * Configures the initial size and appearance of a workbench window.
- */
-public class ApplicationWorkbenchWindowAdvisor extends WorkbenchWindowAdvisor {
-
- public ApplicationWorkbenchWindowAdvisor(
- IWorkbenchWindowConfigurer configurer) {
- super(configurer);
- }
-
- public ActionBarAdvisor createActionBarAdvisor(
- IActionBarConfigurer configurer) {
- return new ApplicationActionBarAdvisor(configurer);
- }
-
- public void preWindowOpen() {
- IWorkbenchWindowConfigurer configurer = getWindowConfigurer();
- configurer.setInitialSize(new Point(1200, 900));
- configurer.setShowCoolBar(false);
- configurer.setShowStatusLine(false);
- }
-}
+++ /dev/null
-package org.argeo.slc.client.rap;
-
-import org.eclipse.rwt.lifecycle.IEntryPoint;
-import org.eclipse.swt.widgets.Display;
-import org.eclipse.ui.PlatformUI;
-import org.eclipse.ui.application.WorkbenchAdvisor;
-
-/**
- * This class controls all aspects of the application's execution
- * and is contributed through the plugin.xml.
- */
-public class SlcClientRapApplication implements IEntryPoint {
-
- public int createUI() {
- Display display = PlatformUI.createDisplay();
- WorkbenchAdvisor advisor = new ApplicationWorkbenchAdvisor();
- return PlatformUI.createAndRunWorkbench( display, advisor );
- }
-}
--- /dev/null
+package org.argeo.slc.client.rap;
+
+import org.argeo.security.ui.application.RapSecureWorkbenchWindowAdvisor;
+import org.eclipse.ui.application.IWorkbenchWindowConfigurer;
+
+/**
+ * Configures the initial size and appearance of a workbench window.
+ */
+public class SlcRapSecureWorkbenchWindowAdvisor extends
+ RapSecureWorkbenchWindowAdvisor {
+
+ public SlcRapSecureWorkbenchWindowAdvisor(
+ IWorkbenchWindowConfigurer configurer) {
+ super(configurer);
+ }
+
+ // Customisation of the main frame can be done here.
+ @Override
+ public void preWindowOpen() {
+ super.preWindowOpen();
+ //
+ // IWorkbenchWindowConfigurer configurer = getWindowConfigurer();
+ // configurer.setShowCoolBar(true);
+ // configurer.setShowMenuBar(true);
+ // configurer.setShowStatusLine(false);
+ // configurer.setShowPerspectiveBar(true);
+ // configurer.setTitle("Argeo Secure UI"); //$NON-NLS-1$
+ // // Full screen, see
+ // //
+ // http://dev.eclipse.org/newslists/news.eclipse.technology.rap/msg02697.html
+ // configurer.setShellStyle(SWT.NONE);
+ // Rectangle bounds = Display.getDefault().getBounds();
+ // configurer.setInitialSize(new Point(bounds.width, bounds.height));
+ }
+
+}
--- /dev/null
+package org.argeo.slc.client.rap;
+
+import org.argeo.security.ui.application.SecureRap;
+import org.argeo.security.ui.application.SecureWorkbenchAdvisor;
+import org.eclipse.ui.application.IWorkbenchWindowConfigurer;
+import org.eclipse.ui.application.WorkbenchAdvisor;
+import org.eclipse.ui.application.WorkbenchWindowAdvisor;
+
+/**
+ * This class controls all aspects of the application's execution and is
+ * contributed through the plugin.xml.
+ */
+public class SlcSecureRap extends SecureRap {
+
+
+ @Override
+ protected WorkbenchAdvisor createWorkbenchAdvisor() {
+ return new SecureWorkbenchAdvisor() {
+ public WorkbenchWindowAdvisor createWorkbenchWindowAdvisor(
+ IWorkbenchWindowConfigurer configurer) {
+ return new SlcRapSecureWorkbenchWindowAdvisor(configurer);
+ }
+
+ };
+ }
+}
org.argeo.slc.execution,
org.argeo.slc.process,
org.argeo.slc.runtime,
+ org.argeo.security.ui.application,
org.argeo.slc.services,
org.argeo.slc.services.impl
point="org.eclipse.core.runtime.applications">
<application>
<run
- class="org.argeo.slc.client.rcp.SlcClientRcpApplication">
+ class="org.argeo.slc.client.rcp.SlcSecureClientApplication">
</run>
</application>
</extension>
sequence="CTRL+R">
</key>
</extension>
+ <extension
+ id="product"
+ point="org.eclipse.core.runtime.products">
+ <product
+ application="org.argeo.slc.client.rcp.application"
+ name="SLC">
+ <property
+ name="windowImages"
+ value="icons/argeo-icon-256.png">
+ </property>
+ </product>
+ </extension>
</plugin>
<name>SLC Client RCP</name>
<packaging>jar</packaging>
<dependencies>
-
+
<!-- SLC -->
<dependency>
<groupId>org.argeo.slc.eclipse</groupId>
<artifactId>org.argeo.slc.client.ui</artifactId>
<version>${project.version}</version>
</dependency>
-
+
<!-- Argeo common distribution for RCP projects -->
<dependency>
<groupId>org.argeo.commons.eclipse</groupId>
<artifactId>org.argeo.eclipse.dep.rcp</artifactId>
<version>${version.argeo-commons}</version>
</dependency>
-
- <!-- Eclipse -->
- <!-- <dependency>
- <groupId>org.eclipse.ui</groupId>
- <artifactId>org.eclipse.ui</artifactId>
- </dependency>
- <dependency>
- <groupId>org.eclipse.core</groupId>
- <artifactId>org.eclipse.core.runtime</artifactId>
- </dependency>
+
+ <!-- Argeo common distribution for Secured UI -->
<dependency>
- <groupId>org.eclipse.swt</groupId>
- <artifactId>org.eclipse.swt.gtk.linux.x86_64</artifactId>
+ <groupId>org.argeo.commons.security</groupId>
+ <artifactId>org.argeo.security.ui.application</artifactId>
+ <version>${version.argeo-commons}</version>
</dependency>
- <dependency>
- <groupId>org.eclipse.swt</groupId>
- <artifactId>org.eclipse.swt.gtk.linux.x86</artifactId>
- </dependency> -->
+
+
+ <!-- Eclipse -->
+ <!-- <dependency> <groupId>org.eclipse.ui</groupId> <artifactId>org.eclipse.ui</artifactId>
+ </dependency> <dependency> <groupId>org.eclipse.core</groupId> <artifactId>org.eclipse.core.runtime</artifactId>
+ </dependency> <dependency> <groupId>org.eclipse.swt</groupId> <artifactId>org.eclipse.swt.gtk.linux.x86_64</artifactId>
+ </dependency> <dependency> <groupId>org.eclipse.swt</groupId> <artifactId>org.eclipse.swt.gtk.linux.x86</artifactId>
+ </dependency> -->
</dependencies>
</project>
+++ /dev/null
-package org.argeo.slc.client.rcp;
-
-import org.eclipse.ui.application.IWorkbenchConfigurer;
-import org.eclipse.ui.application.IWorkbenchWindowConfigurer;
-import org.eclipse.ui.application.WorkbenchAdvisor;
-import org.eclipse.ui.application.WorkbenchWindowAdvisor;
-
-/**
- * implements initial perspective and saveAndRestore status of the workbench.
- *
- * @author bsinou
- *
- */
-public class ApplicationWorkbenchAdvisor extends WorkbenchAdvisor {
-
- private static final String PERSPECTIVE_ID = "org.argeo.slc.client.ui.perspectives.slcExecution";
-// private static final String PERSPECTIVE_ID = "org.argeo.slc.client.ui.dist.distributionPerspective";
-
- public WorkbenchWindowAdvisor createWorkbenchWindowAdvisor(
- IWorkbenchWindowConfigurer configurer) {
- return new ApplicationWorkbenchWindowAdvisor(configurer);
- }
-
- public String getInitialWindowPerspectiveId() {
- return PERSPECTIVE_ID;
- }
-
- @Override
- public void initialize(IWorkbenchConfigurer configurer) {
- super.initialize(configurer);
-
- // To remember the user's layout and window size for the next time he
- // starts the application
- // configurer.setSaveAndRestore(true);
- }
-
-}
+++ /dev/null
-package org.argeo.slc.client.rcp;
-
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.graphics.Image;
-import org.eclipse.swt.graphics.Point;
-import org.eclipse.swt.widgets.Event;
-import org.eclipse.swt.widgets.Listener;
-import org.eclipse.swt.widgets.Menu;
-import org.eclipse.swt.widgets.MenuItem;
-import org.eclipse.swt.widgets.Shell;
-import org.eclipse.swt.widgets.Tray;
-import org.eclipse.swt.widgets.TrayItem;
-import org.eclipse.ui.IWorkbenchWindow;
-import org.eclipse.ui.application.ActionBarAdvisor;
-import org.eclipse.ui.application.IActionBarConfigurer;
-import org.eclipse.ui.application.IWorkbenchWindowConfigurer;
-import org.eclipse.ui.application.WorkbenchWindowAdvisor;
-
-/**
- * Set here initial default size of the UI
- *
- * @author bsinou
- *
- */
-public class ApplicationWorkbenchWindowAdvisor extends WorkbenchWindowAdvisor {
-
- private TrayItem trayItem;
-
- public ApplicationWorkbenchWindowAdvisor(
- IWorkbenchWindowConfigurer configurer) {
- super(configurer);
- }
-
- public ActionBarAdvisor createActionBarAdvisor(
- IActionBarConfigurer configurer) {
- return new ApplicationActionBarAdvisor(configurer);
- }
-
- public void preWindowOpen() {
- IWorkbenchWindowConfigurer configurer = getWindowConfigurer();
-
- configurer.getWorkbenchConfigurer().restoreState();
- // set default window size
- configurer.setInitialSize(new Point(1200, 900));
- configurer.setShowCoolBar(false);
- configurer.setShowStatusLine(true);
- configurer.setShowPerspectiveBar(true);
-
- }
-
- public void postWindowOpen() {
- initTray();
- }
-
- @Override
- public boolean preWindowShellClose() {
- // hide but do not dispose if tray is supported
- if (trayItem != null) {
- getWindowConfigurer().getWindow().getShell().setVisible(false);
- return false;
- } else
- return true;
- }
-
- /** Init tray support */
- protected void initTray() {
- IWorkbenchWindow window = getWindowConfigurer().getWindow();
- final Tray tray = window.getShell().getDisplay().getSystemTray();
- trayItem = new TrayItem(tray, SWT.NONE);
- if (trayItem == null)
- return;
-
- // image
- Image trayImage = ClientRcpPlugin.getDefault().getImageRegistry()
- .get("argeoTrayIcon");
- trayItem.setImage(trayImage);
- trayItem.setToolTipText("Argeo SLC");
-
- // add pop-menu
- // TODO: contribute more commands
- trayItem.addListener(SWT.MenuDetect, new Listener() {
- public void handleEvent(Event event) {
- IWorkbenchWindow window = getWindowConfigurer().getWindow();
- Menu menu = new Menu(window.getShell(), SWT.POP_UP);
- MenuItem exit = new MenuItem(menu, SWT.NONE);
- exit.setText("Exit");
- exit.addListener(SWT.Selection, new Listener() {
- public void handleEvent(Event event) {
- getWindowConfigurer().getWorkbenchConfigurer()
- .getWorkbench().close();
- }
- });
- menu.setVisible(true);
- }
- });
-
- // add behavior when clicked upon
- trayItem.addListener(SWT.Selection, new Listener() {
- public void handleEvent(Event event) {
- Shell shell = getWindowConfigurer().getWindow().getShell();
- if (shell.isVisible()) {
- if (shell.getMinimized())
- shell.setMinimized(false);
- else {
- shell.setVisible(false);
- shell.setMinimized(true);
- }
- } else {
- shell.setVisible(true);
- shell.setActive();
- shell.setFocus();
- shell.setMinimized(false);
- }
- }
- });
- }
-
- @Override
- public void dispose() {
- if (trayItem != null)
- trayItem.dispose();
- }
-
-}
+++ /dev/null
-package org.argeo.slc.client.rcp;
-
-import org.eclipse.equinox.app.IApplication;
-import org.eclipse.equinox.app.IApplicationContext;
-import org.eclipse.swt.widgets.Display;
-import org.eclipse.ui.IWorkbench;
-import org.eclipse.ui.PlatformUI;
-
-/**
- * This class controls all aspects of the application's execution
- */
-public class SlcClientRcpApplication implements IApplication {
-
- /* (non-Javadoc)
- * @see org.eclipse.equinox.app.IApplication#start(org.eclipse.equinox.app.IApplicationContext)
- */
- public Object start(IApplicationContext context) {
- Display display = PlatformUI.createDisplay();
- try {
- int returnCode = PlatformUI.createAndRunWorkbench(display, new ApplicationWorkbenchAdvisor());
- if (returnCode == PlatformUI.RETURN_RESTART) {
- return IApplication.EXIT_RESTART;
- }
- return IApplication.EXIT_OK;
- } finally {
- display.dispose();
- }
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.equinox.app.IApplication#stop()
- */
- public void stop() {
- final IWorkbench workbench = PlatformUI.getWorkbench();
- if (workbench == null)
- return;
- final Display display = workbench.getDisplay();
- display.syncExec(new Runnable() {
- public void run() {
- if (!display.isDisposed())
- workbench.close();
- }
- });
- }
-}
--- /dev/null
+package org.argeo.slc.client.rcp;
+
+import org.argeo.security.ui.application.SecureRcp;
+import org.eclipse.ui.application.WorkbenchAdvisor;
+
+/**
+ * This class controls all aspects of the application's execution
+ */
+public class SlcSecureClientApplication extends SecureRcp {
+
+ @Override
+ protected WorkbenchAdvisor createWorkbenchAdvisor() {
+ return new SlcSecureWorkbenchAdvisor();
+ }
+
+}
--- /dev/null
+package org.argeo.slc.client.rcp;
+
+import org.eclipse.ui.application.IWorkbenchConfigurer;
+import org.eclipse.ui.application.IWorkbenchWindowConfigurer;
+import org.eclipse.ui.application.WorkbenchAdvisor;
+import org.eclipse.ui.application.WorkbenchWindowAdvisor;
+
+/**
+ * implements initial perspective and saveAndRestore status of the workbench.
+ *
+ * @author bsinou
+ *
+ */
+public class SlcSecureWorkbenchAdvisor extends WorkbenchAdvisor {
+
+ // private static final String PERSPECTIVE_ID =
+ // "org.argeo.slc.client.ui.perspectives.slcExecution";
+ static final String DEFAULT_PERSPECTIVE_ID = "org.argeo.security.ui.securityPerspective"; //$NON-NLS-1$
+
+ public final static String INITIAL_PERSPECTIVE_PROPERTY = "org.argeo.security.ui.initialPerspective";
+ private String initialPerspective = System.getProperty(
+ INITIAL_PERSPECTIVE_PROPERTY, DEFAULT_PERSPECTIVE_ID);
+
+ public WorkbenchWindowAdvisor createWorkbenchWindowAdvisor(
+ IWorkbenchWindowConfigurer configurer) {
+ return new SlcSecureWorkbenchWindowAdvisor(configurer);
+ }
+
+ public String getInitialWindowPerspectiveId() {
+ // return PERSPECTIVE_ID;
+ return initialPerspective;
+ }
+
+ @Override
+ public void initialize(IWorkbenchConfigurer configurer) {
+ super.initialize(configurer);
+
+ // To remember the user's layout and window size for the next time he
+ // starts the application
+ // configurer.setSaveAndRestore(true);
+ }
+}
--- /dev/null
+package org.argeo.slc.client.rcp;
+
+import org.argeo.security.ui.application.SecureWorkbenchWindowAdvisor;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.swt.graphics.Point;
+import org.eclipse.swt.widgets.Event;
+import org.eclipse.swt.widgets.Listener;
+import org.eclipse.swt.widgets.Menu;
+import org.eclipse.swt.widgets.MenuItem;
+import org.eclipse.swt.widgets.Shell;
+import org.eclipse.swt.widgets.Tray;
+import org.eclipse.swt.widgets.TrayItem;
+import org.eclipse.ui.IWorkbenchWindow;
+import org.eclipse.ui.application.ActionBarAdvisor;
+import org.eclipse.ui.application.IActionBarConfigurer;
+import org.eclipse.ui.application.IWorkbenchWindowConfigurer;
+
+/**
+ * Set here initial default size of the UI
+ *
+ * @author bsinou
+ *
+ */
+public class SlcSecureWorkbenchWindowAdvisor extends
+ SecureWorkbenchWindowAdvisor {
+
+ private TrayItem trayItem;
+
+ public SlcSecureWorkbenchWindowAdvisor(IWorkbenchWindowConfigurer configurer) {
+ super(configurer);
+ }
+
+// public ActionBarAdvisor createActionBarAdvisor(
+// IActionBarConfigurer configurer) {
+// return new ApplicationActionBarAdvisor(configurer);
+// }
+
+
+ public void postWindowOpen() {
+ initTray();
+ }
+
+ @Override
+ public boolean preWindowShellClose() {
+ // hide but do not dispose if tray is supported
+ if (trayItem != null) {
+ getWindowConfigurer().getWindow().getShell().setVisible(false);
+ return false;
+ } else
+ return true;
+ }
+
+ /** Init tray support */
+ protected void initTray() {
+ IWorkbenchWindow window = getWindowConfigurer().getWindow();
+ final Tray tray = window.getShell().getDisplay().getSystemTray();
+ trayItem = new TrayItem(tray, SWT.NONE);
+ if (trayItem == null)
+ return;
+
+ // image
+ Image trayImage = ClientRcpPlugin.getDefault().getImageRegistry()
+ .get("argeoTrayIcon");
+ trayItem.setImage(trayImage);
+ trayItem.setToolTipText("Argeo SLC");
+
+ // add pop-menu
+ // TODO: contribute more commands
+ trayItem.addListener(SWT.MenuDetect, new Listener() {
+ public void handleEvent(Event event) {
+ IWorkbenchWindow window = getWindowConfigurer().getWindow();
+ Menu menu = new Menu(window.getShell(), SWT.POP_UP);
+ MenuItem exit = new MenuItem(menu, SWT.NONE);
+ exit.setText("Exit");
+ exit.addListener(SWT.Selection, new Listener() {
+ public void handleEvent(Event event) {
+ getWindowConfigurer().getWorkbenchConfigurer()
+ .getWorkbench().close();
+ }
+ });
+ menu.setVisible(true);
+ }
+ });
+
+ // add behavior when clicked upon
+ trayItem.addListener(SWT.Selection, new Listener() {
+ public void handleEvent(Event event) {
+ Shell shell = getWindowConfigurer().getWindow().getShell();
+ if (shell.isVisible()) {
+ if (shell.getMinimized())
+ shell.setMinimized(false);
+ else {
+ shell.setVisible(false);
+ shell.setMinimized(true);
+ }
+ } else {
+ shell.setVisible(true);
+ shell.setActive();
+ shell.setFocus();
+ shell.setMinimized(false);
+ }
+ }
+ });
+ }
+
+ @Override
+ public void dispose() {
+ if (trayItem != null)
+ trayItem.dispose();
+ }
+
+}
} else if (own.obj instanceof RefValue) {
RefValue rv = (RefValue) own.obj;
List<String> values = comboBoxes.get(own.name);
- log.debug("Get Value : " + rv.getRef() + " & index : "
- + values.indexOf(rv.getRef()));
return values.indexOf(rv.getRef());
} else
return "unsupported param type";
if (obj instanceof ExecutionModulesContentProvider.ExecutionModuleNode) {
ExecutionModuleDescriptor emd = ((ExecutionModulesContentProvider.ExecutionModuleNode) obj)
.getDescriptor();
- System.out
- .println("obj instanceof ExecutionModulesContentProvider.ExecutionModuleNode");
- log.debug("obj instanceof ExecutionModulesContentProvider.ExecutionModuleNode");
if (emd.getLabel() != null) {
- log.debug("and label is : " + emd.getLabel());
return emd.getLabel();
} else {
- log.debug("label is null and text is : " + getText(emd));
return getText(emd);
}
} else