[openrtm-commit:01037] r441 - in trunk/rtmtools/jp.go.aist.rtm.systemeditor.RCP: . .settings META-INF icons src src/jp src/jp/go src/jp/go/aist src/jp/go/aist/rtm src/jp/go/aist/rtm/systemeditor src/jp/go/aist/rtm/systemeditor/rcp
openrtm @ openrtm.org
openrtm @ openrtm.org
2013年 3月 17日 (日) 00:41:34 JST
Author: ga
Date: 2013-03-17 00:41:34 +0900 (Sun, 17 Mar 2013)
New Revision: 441
Added:
trunk/rtmtools/jp.go.aist.rtm.systemeditor.RCP/.classpath
trunk/rtmtools/jp.go.aist.rtm.systemeditor.RCP/.project
trunk/rtmtools/jp.go.aist.rtm.systemeditor.RCP/.settings/
trunk/rtmtools/jp.go.aist.rtm.systemeditor.RCP/.settings/org.eclipse.jdt.core.prefs
trunk/rtmtools/jp.go.aist.rtm.systemeditor.RCP/META-INF/
trunk/rtmtools/jp.go.aist.rtm.systemeditor.RCP/META-INF/MANIFEST.MF
trunk/rtmtools/jp.go.aist.rtm.systemeditor.RCP/RTSystemEditor.product
trunk/rtmtools/jp.go.aist.rtm.systemeditor.RCP/build.properties
trunk/rtmtools/jp.go.aist.rtm.systemeditor.RCP/icons/
trunk/rtmtools/jp.go.aist.rtm.systemeditor.RCP/icons/RTM_logoL.gif
trunk/rtmtools/jp.go.aist.rtm.systemeditor.RCP/plugin.properties
trunk/rtmtools/jp.go.aist.rtm.systemeditor.RCP/plugin.xml
trunk/rtmtools/jp.go.aist.rtm.systemeditor.RCP/plugin_customization.ini
trunk/rtmtools/jp.go.aist.rtm.systemeditor.RCP/splash.bmp
trunk/rtmtools/jp.go.aist.rtm.systemeditor.RCP/src/
trunk/rtmtools/jp.go.aist.rtm.systemeditor.RCP/src/jp/
trunk/rtmtools/jp.go.aist.rtm.systemeditor.RCP/src/jp/go/
trunk/rtmtools/jp.go.aist.rtm.systemeditor.RCP/src/jp/go/aist/
trunk/rtmtools/jp.go.aist.rtm.systemeditor.RCP/src/jp/go/aist/rtm/
trunk/rtmtools/jp.go.aist.rtm.systemeditor.RCP/src/jp/go/aist/rtm/systemeditor/
trunk/rtmtools/jp.go.aist.rtm.systemeditor.RCP/src/jp/go/aist/rtm/systemeditor/rcp/
trunk/rtmtools/jp.go.aist.rtm.systemeditor.RCP/src/jp/go/aist/rtm/systemeditor/rcp/ApplicationActionBarAdvisor.java
trunk/rtmtools/jp.go.aist.rtm.systemeditor.RCP/src/jp/go/aist/rtm/systemeditor/rcp/ApplicationWorkbenchAdvisor.java
trunk/rtmtools/jp.go.aist.rtm.systemeditor.RCP/src/jp/go/aist/rtm/systemeditor/rcp/ApplicationWorkbenchWindowAdvisor.java
trunk/rtmtools/jp.go.aist.rtm.systemeditor.RCP/src/jp/go/aist/rtm/systemeditor/rcp/SystemEditorActivator.java
trunk/rtmtools/jp.go.aist.rtm.systemeditor.RCP/src/jp/go/aist/rtm/systemeditor/rcp/SystemEditorApplication.java
Log:
Added: trunk/rtmtools/jp.go.aist.rtm.systemeditor.RCP/.classpath
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.systemeditor.RCP/.classpath (rev 0)
+++ trunk/rtmtools/jp.go.aist.rtm.systemeditor.RCP/.classpath 2013-03-16 15:41:34 UTC (rev 441)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
+ <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
Property changes on: trunk/rtmtools/jp.go.aist.rtm.systemeditor.RCP/.classpath
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: trunk/rtmtools/jp.go.aist.rtm.systemeditor.RCP/.project
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.systemeditor.RCP/.project (rev 0)
+++ trunk/rtmtools/jp.go.aist.rtm.systemeditor.RCP/.project 2013-03-16 15:41:34 UTC (rev 441)
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>jp.go.aist.rtm.systemeditor.RCP</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.ManifestBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.SchemaBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.pde.PluginNature</nature>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ </natures>
+</projectDescription>
Property changes on: trunk/rtmtools/jp.go.aist.rtm.systemeditor.RCP/.project
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: trunk/rtmtools/jp.go.aist.rtm.systemeditor.RCP/.settings/org.eclipse.jdt.core.prefs
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.systemeditor.RCP/.settings/org.eclipse.jdt.core.prefs (rev 0)
+++ trunk/rtmtools/jp.go.aist.rtm.systemeditor.RCP/.settings/org.eclipse.jdt.core.prefs 2013-03-16 15:41:34 UTC (rev 441)
@@ -0,0 +1,7 @@
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
+org.eclipse.jdt.core.compiler.compliance=1.6
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.source=1.6
Property changes on: trunk/rtmtools/jp.go.aist.rtm.systemeditor.RCP/.settings/org.eclipse.jdt.core.prefs
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: trunk/rtmtools/jp.go.aist.rtm.systemeditor.RCP/META-INF/MANIFEST.MF
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.systemeditor.RCP/META-INF/MANIFEST.MF (rev 0)
+++ trunk/rtmtools/jp.go.aist.rtm.systemeditor.RCP/META-INF/MANIFEST.MF 2013-03-16 15:41:34 UTC (rev 441)
@@ -0,0 +1,17 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: %pluginName
+Bundle-SymbolicName: jp.go.aist.rtm.systemeditor.RCP; singleton:=true
+Bundle-Version: 1.1.0.RC4
+Bundle-Activator: jp.go.aist.rtm.systemeditor.rcp.SystemEditorActivator
+Require-Bundle: org.eclipse.ui,
+ org.eclipse.core.runtime,
+ jp.go.aist.rtm.nameserviceview;bundle-version="1.1.0",
+ jp.go.aist.rtm.repositoryView;bundle-version="1.1.0",
+ jp.go.aist.rtm.systemeditor;bundle-version="1.1.0",
+ jp.go.aist.rtm.toolscommon;bundle-version="1.1.0",
+ jp.go.aist.rtm.toolscommon.profiles;bundle-version="1.1.0"
+Bundle-ActivationPolicy: lazy
+Bundle-RequiredExecutionEnvironment: JavaSE-1.6
+Bundle-Vendor: %providerName
+Export-Package: jp.go.aist.rtm.systemeditor.rcp
Property changes on: trunk/rtmtools/jp.go.aist.rtm.systemeditor.RCP/META-INF/MANIFEST.MF
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: trunk/rtmtools/jp.go.aist.rtm.systemeditor.RCP/RTSystemEditor.product
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.systemeditor.RCP/RTSystemEditor.product (rev 0)
+++ trunk/rtmtools/jp.go.aist.rtm.systemeditor.RCP/RTSystemEditor.product 2013-03-16 15:41:34 UTC (rev 441)
@@ -0,0 +1,134 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?pde version="3.5"?>
+
+<product name="%productName" id="jp.go.aist.rtm.systemeditor.RCP.product" application="jp.go.aist.rtm.systemeditor.RCP.application" version="1.0.0" useFeatures="false" includeLaunchers="true">
+
+ <aboutInfo>
+ <image path="/jp.go.aist.rtm.systemeditor.RCP/icons/RTM_logo.gif"/>
+ <text>
+ %aboutText
+ </text>
+ </aboutInfo>
+
+ <configIni use="default">
+ </configIni>
+
+ <launcherArgs>
+ </launcherArgs>
+
+ <windowImages i128="/jp.go.aist.rtm.systemeditor.RCP/icons/RTM_logoL.gif"/>
+
+ <splash
+ location="jp.go.aist.rtm.systemeditor.RCP"
+ startupProgressRect="0,0,0,0"
+ startupMessageRect="0,0,0,0"
+ startupForegroundColor="000000" />
+ <launcher name="RTSystemEditorRCP">
+ <solaris/>
+ <win useIco="false">
+ <bmp/>
+ </win>
+ </launcher>
+
+ <vm>
+ </vm>
+
+ <plugins>
+ <plugin id="com.ibm.icu"/>
+ <plugin id="com.ibm.icu.nl_ja" fragment="true"/>
+ <plugin id="jp.go.aist.rtm.nameserviceview"/>
+ <plugin id="jp.go.aist.rtm.nameserviceview.nl1" fragment="true"/>
+ <plugin id="jp.go.aist.rtm.repositoryView"/>
+ <plugin id="jp.go.aist.rtm.repositoryView.nl1" fragment="true"/>
+ <plugin id="jp.go.aist.rtm.systemeditor"/>
+ <plugin id="jp.go.aist.rtm.systemeditor.RCP"/>
+ <plugin id="jp.go.aist.rtm.systemeditor.nl1" fragment="true"/>
+ <plugin id="jp.go.aist.rtm.toolscommon"/>
+ <plugin id="jp.go.aist.rtm.toolscommon.nl1" fragment="true"/>
+ <plugin id="jp.go.aist.rtm.toolscommon.profiles"/>
+ <plugin id="jp.go.aist.rtm.toolscommon.profiles.nl1" fragment="true"/>
+ <plugin id="org.eclipse.compare.core"/>
+ <plugin id="org.eclipse.compare.core.nl_ja" fragment="true"/>
+ <plugin id="org.eclipse.core.commands"/>
+ <plugin id="org.eclipse.core.commands.nl_ja" fragment="true"/>
+ <plugin id="org.eclipse.core.contenttype"/>
+ <plugin id="org.eclipse.core.contenttype.nl_ja" fragment="true"/>
+ <plugin id="org.eclipse.core.databinding"/>
+ <plugin id="org.eclipse.core.databinding.nl_ja" fragment="true"/>
+ <plugin id="org.eclipse.core.databinding.observable"/>
+ <plugin id="org.eclipse.core.databinding.observable.nl_ja" fragment="true"/>
+ <plugin id="org.eclipse.core.databinding.property"/>
+ <plugin id="org.eclipse.core.databinding.property.nl_ja" fragment="true"/>
+ <plugin id="org.eclipse.core.expressions"/>
+ <plugin id="org.eclipse.core.expressions.nl_ja" fragment="true"/>
+ <plugin id="org.eclipse.core.filebuffers"/>
+ <plugin id="org.eclipse.core.filebuffers.nl_ja" fragment="true"/>
+ <plugin id="org.eclipse.core.filesystem"/>
+ <plugin id="org.eclipse.core.filesystem.nl_ja" fragment="true"/>
+ <plugin id="org.eclipse.core.filesystem.win32.x86" fragment="true"/>
+ <plugin id="org.eclipse.core.jobs"/>
+ <plugin id="org.eclipse.core.jobs.nl_ja" fragment="true"/>
+ <plugin id="org.eclipse.core.resources"/>
+ <plugin id="org.eclipse.core.resources.nl_ja" fragment="true"/>
+ <plugin id="org.eclipse.core.resources.win32.x86" fragment="true"/>
+ <plugin id="org.eclipse.core.runtime"/>
+ <plugin id="org.eclipse.core.runtime.compatibility.registry" fragment="true"/>
+ <plugin id="org.eclipse.core.runtime.nl_ja" fragment="true"/>
+ <plugin id="org.eclipse.draw2d"/>
+ <plugin id="org.eclipse.emf.common"/>
+ <plugin id="org.eclipse.emf.ecore"/>
+ <plugin id="org.eclipse.emf.ecore.xmi"/>
+ <plugin id="org.eclipse.equinox.app"/>
+ <plugin id="org.eclipse.equinox.app.nl_ja" fragment="true"/>
+ <plugin id="org.eclipse.equinox.common"/>
+ <plugin id="org.eclipse.equinox.common.nl_ja" fragment="true"/>
+ <plugin id="org.eclipse.equinox.p2.core"/>
+ <plugin id="org.eclipse.equinox.p2.core.nl_ja" fragment="true"/>
+ <plugin id="org.eclipse.equinox.p2.engine"/>
+ <plugin id="org.eclipse.equinox.p2.engine.nl_ja" fragment="true"/>
+ <plugin id="org.eclipse.equinox.p2.metadata"/>
+ <plugin id="org.eclipse.equinox.p2.metadata.nl_ja" fragment="true"/>
+ <plugin id="org.eclipse.equinox.p2.metadata.repository"/>
+ <plugin id="org.eclipse.equinox.p2.metadata.repository.nl_ja" fragment="true"/>
+ <plugin id="org.eclipse.equinox.p2.repository"/>
+ <plugin id="org.eclipse.equinox.p2.repository.nl_ja" fragment="true"/>
+ <plugin id="org.eclipse.equinox.preferences"/>
+ <plugin id="org.eclipse.equinox.preferences.nl_ja" fragment="true"/>
+ <plugin id="org.eclipse.equinox.registry"/>
+ <plugin id="org.eclipse.equinox.registry.nl_ja" fragment="true"/>
+ <plugin id="org.eclipse.equinox.security"/>
+ <plugin id="org.eclipse.equinox.security.nl_ja" fragment="true"/>
+ <plugin id="org.eclipse.equinox.security.win32.x86" fragment="true"/>
+ <plugin id="org.eclipse.gef"/>
+ <plugin id="org.eclipse.help"/>
+ <plugin id="org.eclipse.help.nl_ja" fragment="true"/>
+ <plugin id="org.eclipse.jface"/>
+ <plugin id="org.eclipse.jface.databinding"/>
+ <plugin id="org.eclipse.jface.databinding.nl_ja" fragment="true"/>
+ <plugin id="org.eclipse.jface.nl_ja" fragment="true"/>
+ <plugin id="org.eclipse.jface.text"/>
+ <plugin id="org.eclipse.jface.text.nl_ja" fragment="true"/>
+ <plugin id="org.eclipse.osgi"/>
+ <plugin id="org.eclipse.osgi.nl_ja" fragment="true"/>
+ <plugin id="org.eclipse.swt"/>
+ <plugin id="org.eclipse.swt.nl_ja" fragment="true"/>
+ <plugin id="org.eclipse.swt.win32.win32.x86" fragment="true"/>
+ <plugin id="org.eclipse.text"/>
+ <plugin id="org.eclipse.text.nl_ja" fragment="true"/>
+ <plugin id="org.eclipse.ui"/>
+ <plugin id="org.eclipse.ui.editors"/>
+ <plugin id="org.eclipse.ui.editors.nl_ja" fragment="true"/>
+ <plugin id="org.eclipse.ui.ide"/>
+ <plugin id="org.eclipse.ui.ide.nl_ja" fragment="true"/>
+ <plugin id="org.eclipse.ui.nl_ja" fragment="true"/>
+ <plugin id="org.eclipse.ui.views"/>
+ <plugin id="org.eclipse.ui.views.nl_ja" fragment="true"/>
+ <plugin id="org.eclipse.ui.win32" fragment="true"/>
+ <plugin id="org.eclipse.ui.workbench"/>
+ <plugin id="org.eclipse.ui.workbench.nl_ja" fragment="true"/>
+ <plugin id="org.eclipse.ui.workbench.texteditor"/>
+ <plugin id="org.eclipse.ui.workbench.texteditor.nl_ja" fragment="true"/>
+ </plugins>
+
+
+</product>
Property changes on: trunk/rtmtools/jp.go.aist.rtm.systemeditor.RCP/RTSystemEditor.product
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: trunk/rtmtools/jp.go.aist.rtm.systemeditor.RCP/build.properties
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.systemeditor.RCP/build.properties (rev 0)
+++ trunk/rtmtools/jp.go.aist.rtm.systemeditor.RCP/build.properties 2013-03-16 15:41:34 UTC (rev 441)
@@ -0,0 +1,6 @@
+source.. = src/
+output.. = bin/
+bin.includes = plugin.xml,\
+ META-INF/,\
+ .,\
+ icons/
Property changes on: trunk/rtmtools/jp.go.aist.rtm.systemeditor.RCP/build.properties
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: trunk/rtmtools/jp.go.aist.rtm.systemeditor.RCP/icons/RTM_logoL.gif
===================================================================
(Binary files differ)
Property changes on: trunk/rtmtools/jp.go.aist.rtm.systemeditor.RCP/icons/RTM_logoL.gif
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: trunk/rtmtools/jp.go.aist.rtm.systemeditor.RCP/plugin.properties
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.systemeditor.RCP/plugin.properties (rev 0)
+++ trunk/rtmtools/jp.go.aist.rtm.systemeditor.RCP/plugin.properties 2013-03-16 15:41:34 UTC (rev 441)
@@ -0,0 +1,13 @@
+pluginName= RT System Editor RCP
+providerName= National Institute of Advanced Industrial Science and Technology (AIST)
+
+productName= RT System Editor RCP
+appName= RT System Editor RCP App
+perspectives.name= RTSystemEditor
+
+swtAppName= RT System Editor RCP
+aboutText= RT System Editor RCP \n\n\
+(c) Copyright National Institute of Advanced Industrial Science and Technology (AIST) 2008. All rights reserved.\n\
+Visit http://www.is.aist.go.jp/rt/OpenRTM-aist/
+
+perspective.name.0 = RT System Editor
\ No newline at end of file
Property changes on: trunk/rtmtools/jp.go.aist.rtm.systemeditor.RCP/plugin.properties
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: trunk/rtmtools/jp.go.aist.rtm.systemeditor.RCP/plugin.xml
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.systemeditor.RCP/plugin.xml (rev 0)
+++ trunk/rtmtools/jp.go.aist.rtm.systemeditor.RCP/plugin.xml 2013-03-16 15:41:34 UTC (rev 441)
@@ -0,0 +1,49 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?eclipse version="3.4"?>
+<plugin>
+
+ <extension
+ id="application"
+ point="org.eclipse.core.runtime.applications">
+ <application>
+ <run
+ class="jp.go.aist.rtm.systemeditor.rcp.SystemEditorApplication">
+ </run>
+ </application>
+ </extension>
+ <extension
+ id="product"
+ point="org.eclipse.core.runtime.products">
+ <product
+ application="jp.go.aist.rtm.systemeditor.RCP.application"
+ name="%productName">
+ <property
+ name="windowImages"
+ value="icons/RTM_logoL.gif"/>
+ <property
+ name="aboutText"
+ value="%aboutText"/>
+ <property
+ name="aboutImage"
+ value="icons/RTM_logo.gif"/>
+ <property
+ name="startupForegroundColor"
+ value="000000"/>
+ <property
+ name="startupProgressRect"
+ value="0,0,0,0"/>
+ <property
+ name="startupMessageRect"
+ value="0,0,0,0"/>
+ <property
+ name="appName"
+ value="%productName">
+ </property>
+ <property
+ name="preferenceCustomization"
+ value="plugin_customization.ini">
+ </property>
+ </product>
+ </extension>
+
+</plugin>
Property changes on: trunk/rtmtools/jp.go.aist.rtm.systemeditor.RCP/plugin.xml
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: trunk/rtmtools/jp.go.aist.rtm.systemeditor.RCP/plugin_customization.ini
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.systemeditor.RCP/plugin_customization.ini (rev 0)
+++ trunk/rtmtools/jp.go.aist.rtm.systemeditor.RCP/plugin_customization.ini 2013-03-16 15:41:34 UTC (rev 441)
@@ -0,0 +1 @@
+org.eclipse.ui/SHOW_PROGRESS_ON_STARTUP = true
Property changes on: trunk/rtmtools/jp.go.aist.rtm.systemeditor.RCP/plugin_customization.ini
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: trunk/rtmtools/jp.go.aist.rtm.systemeditor.RCP/splash.bmp
===================================================================
(Binary files differ)
Property changes on: trunk/rtmtools/jp.go.aist.rtm.systemeditor.RCP/splash.bmp
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: trunk/rtmtools/jp.go.aist.rtm.systemeditor.RCP/src/jp/go/aist/rtm/systemeditor/rcp/ApplicationActionBarAdvisor.java
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.systemeditor.RCP/src/jp/go/aist/rtm/systemeditor/rcp/ApplicationActionBarAdvisor.java (rev 0)
+++ trunk/rtmtools/jp.go.aist.rtm.systemeditor.RCP/src/jp/go/aist/rtm/systemeditor/rcp/ApplicationActionBarAdvisor.java 2013-03-16 15:41:34 UTC (rev 441)
@@ -0,0 +1,60 @@
+package jp.go.aist.rtm.systemeditor.rcp;
+
+import org.eclipse.jface.action.GroupMarker;
+import org.eclipse.jface.action.IAction;
+import org.eclipse.jface.action.IMenuManager;
+import org.eclipse.jface.action.MenuManager;
+import org.eclipse.jface.action.Separator;
+import org.eclipse.ui.IWorkbenchActionConstants;
+import org.eclipse.ui.IWorkbenchWindow;
+import org.eclipse.ui.actions.ActionFactory;
+import org.eclipse.ui.actions.ActionFactory.IWorkbenchAction;
+import org.eclipse.ui.application.ActionBarAdvisor;
+import org.eclipse.ui.application.IActionBarConfigurer;
+import org.eclipse.ui.internal.ide.IDEWorkbenchMessages;
+
+public class ApplicationActionBarAdvisor extends ActionBarAdvisor {
+
+ private IAction saveAction, saveAsAction, quitAction, aboutAction, deleteAction;
+ private IWorkbenchAction preferenceAction;
+
+ public ApplicationActionBarAdvisor(IActionBarConfigurer configurer) {
+ super(configurer);
+ }
+
+ protected void makeActions(final IWorkbenchWindow window) {
+ saveAction = ActionFactory.SAVE.create(window);
+ register(saveAction);
+ //
+ saveAsAction = ActionFactory.SAVE_AS.create(window);
+ register(saveAsAction);
+ //
+ quitAction = ActionFactory.QUIT.create(window);
+ register(quitAction);
+ //
+ aboutAction = ActionFactory.ABOUT.create(window);
+ register(aboutAction);
+ //
+ deleteAction = ActionFactory.DELETE.create(window);
+ register(deleteAction);
+ //
+ preferenceAction = ActionFactory.PREFERENCES.create(window);
+ register(preferenceAction);
+ //
+ }
+
+ protected void fillMenuBar(IMenuManager menuBar) {
+
+ MenuManager fileMenu = new MenuManager(IDEWorkbenchMessages.Workbench_file, IWorkbenchActionConstants.M_FILE);
+ menuBar.add(fileMenu);
+ fileMenu.add(saveAction);
+ fileMenu.add(saveAsAction);
+ fileMenu.add(new Separator());
+ fileMenu.add(new GroupMarker(IWorkbenchActionConstants.MB_ADDITIONS));
+ fileMenu.add(quitAction);
+ //
+ IMenuManager toolsMenu = new MenuManager(IDEWorkbenchMessages.Workbench_window, "SystemEditor_Window");
+ menuBar.add(toolsMenu);
+ toolsMenu.add(preferenceAction);
+ }
+}
Property changes on: trunk/rtmtools/jp.go.aist.rtm.systemeditor.RCP/src/jp/go/aist/rtm/systemeditor/rcp/ApplicationActionBarAdvisor.java
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: trunk/rtmtools/jp.go.aist.rtm.systemeditor.RCP/src/jp/go/aist/rtm/systemeditor/rcp/ApplicationWorkbenchAdvisor.java
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.systemeditor.RCP/src/jp/go/aist/rtm/systemeditor/rcp/ApplicationWorkbenchAdvisor.java (rev 0)
+++ trunk/rtmtools/jp.go.aist.rtm.systemeditor.RCP/src/jp/go/aist/rtm/systemeditor/rcp/ApplicationWorkbenchAdvisor.java 2013-03-16 15:41:34 UTC (rev 441)
@@ -0,0 +1,20 @@
+package jp.go.aist.rtm.systemeditor.rcp;
+
+import org.eclipse.ui.application.IWorkbenchWindowConfigurer;
+import org.eclipse.ui.application.WorkbenchAdvisor;
+import org.eclipse.ui.application.WorkbenchWindowAdvisor;
+
+public class ApplicationWorkbenchAdvisor extends WorkbenchAdvisor {
+
+ private static final String PERSPECTIVE_ID = "jp.go.aist.rtm.systemeditor.ui.perspective.RtcLinkPerspective";
+
+ public WorkbenchWindowAdvisor createWorkbenchWindowAdvisor(
+ IWorkbenchWindowConfigurer configurer) {
+ return new ApplicationWorkbenchWindowAdvisor(configurer);
+ }
+
+ public String getInitialWindowPerspectiveId() {
+ return PERSPECTIVE_ID;
+ }
+
+}
Property changes on: trunk/rtmtools/jp.go.aist.rtm.systemeditor.RCP/src/jp/go/aist/rtm/systemeditor/rcp/ApplicationWorkbenchAdvisor.java
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: trunk/rtmtools/jp.go.aist.rtm.systemeditor.RCP/src/jp/go/aist/rtm/systemeditor/rcp/ApplicationWorkbenchWindowAdvisor.java
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.systemeditor.RCP/src/jp/go/aist/rtm/systemeditor/rcp/ApplicationWorkbenchWindowAdvisor.java (rev 0)
+++ trunk/rtmtools/jp.go.aist.rtm.systemeditor.RCP/src/jp/go/aist/rtm/systemeditor/rcp/ApplicationWorkbenchWindowAdvisor.java 2013-03-16 15:41:34 UTC (rev 441)
@@ -0,0 +1,67 @@
+package jp.go.aist.rtm.systemeditor.rcp;
+
+import org.eclipse.jface.action.IContributionItem;
+import org.eclipse.jface.action.MenuManager;
+import org.eclipse.jface.preference.PreferenceManager;
+import org.eclipse.jface.window.ApplicationWindow;
+import org.eclipse.swt.graphics.Point;
+import org.eclipse.ui.IWorkbenchPage;
+import org.eclipse.ui.PlatformUI;
+import org.eclipse.ui.application.ActionBarAdvisor;
+import org.eclipse.ui.application.IActionBarConfigurer;
+import org.eclipse.ui.application.IWorkbenchWindowConfigurer;
+import org.eclipse.ui.application.WorkbenchWindowAdvisor;
+
+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(1000, 800));
+ configurer.setShowCoolBar(true);
+ configurer.setShowStatusLine(true);
+ configurer.setShowFastViewBars(false);
+ configurer.setShowMenuBar(true);
+ configurer.setShowProgressIndicator(true);
+ configurer.setTitle("RT System Editor RCP");
+ //
+ PreferenceManager prefer = (PreferenceManager)PlatformUI.getWorkbench().getPreferenceManager();
+ prefer.remove("org.eclipse.ui.preferencePages.Workbench");
+ }
+
+ @Override
+ public void postWindowCreate() {
+ IWorkbenchPage page = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();
+ MenuManager mbManager=((ApplicationWindow)page.getWorkbenchWindow()).getMenuBarManager();
+
+ for (IContributionItem item : mbManager.getItems()){
+ if (item.getId().equals("file")){
+ for (IContributionItem child : ((MenuManager)item).getItems() ) {
+ String id = child.getId();
+ if (id!=null &&
+ (id.equals("converstLineDelimitersTo") || id.equals("save.ext")
+ || id.equals("org.eclipse.ui.edit.text.openExternalFile") || id.equals("new.ext")) ){
+ child.setVisible(false);
+ child.dispose();
+ }
+ }
+ }
+ }
+ }
+
+ @Override
+ public void postWindowOpen() {
+ IWorkbenchPage page = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();
+ page.hideActionSet("org.eclipse.ui.WorkingSetActionSet");
+ page.hideActionSet("org.eclipse.ui.edit.text.actionSet.annotationNavigation");
+ page.hideActionSet("org.eclipse.ui.edit.text.actionSet.navigation");
+ }
+}
Property changes on: trunk/rtmtools/jp.go.aist.rtm.systemeditor.RCP/src/jp/go/aist/rtm/systemeditor/rcp/ApplicationWorkbenchWindowAdvisor.java
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: trunk/rtmtools/jp.go.aist.rtm.systemeditor.RCP/src/jp/go/aist/rtm/systemeditor/rcp/SystemEditorActivator.java
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.systemeditor.RCP/src/jp/go/aist/rtm/systemeditor/rcp/SystemEditorActivator.java (rev 0)
+++ trunk/rtmtools/jp.go.aist.rtm.systemeditor.RCP/src/jp/go/aist/rtm/systemeditor/rcp/SystemEditorActivator.java 2013-03-16 15:41:34 UTC (rev 441)
@@ -0,0 +1,61 @@
+package jp.go.aist.rtm.systemeditor.rcp;
+
+import org.eclipse.jface.resource.ImageDescriptor;
+import org.eclipse.ui.plugin.AbstractUIPlugin;
+import org.osgi.framework.BundleContext;
+
+/**
+ * The activator class controls the plug-in life cycle
+ */
+public class SystemEditorActivator extends AbstractUIPlugin {
+
+ // The plug-in ID
+ public static final String PLUGIN_ID = "jp.go.aist.rtm.systemeditor.RCP"; //$NON-NLS-1$
+
+ // The shared instance
+ private static SystemEditorActivator plugin;
+
+ /**
+ * The constructor
+ */
+ public SystemEditorActivator() {
+ }
+
+ /*
+ * (non-Javadoc)
+ * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)
+ */
+ public void start(BundleContext context) throws Exception {
+ super.start(context);
+ plugin = this;
+ }
+
+ /*
+ * (non-Javadoc)
+ * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)
+ */
+ public void stop(BundleContext context) throws Exception {
+ plugin = null;
+ super.stop(context);
+ }
+
+ /**
+ * Returns the shared instance
+ *
+ * @return the shared instance
+ */
+ public static SystemEditorActivator getDefault() {
+ return plugin;
+ }
+
+ /**
+ * Returns an image descriptor for the image file at the given
+ * plug-in relative path
+ *
+ * @param path the path
+ * @return the image descriptor
+ */
+ public static ImageDescriptor getImageDescriptor(String path) {
+ return imageDescriptorFromPlugin(PLUGIN_ID, path);
+ }
+}
Property changes on: trunk/rtmtools/jp.go.aist.rtm.systemeditor.RCP/src/jp/go/aist/rtm/systemeditor/rcp/SystemEditorActivator.java
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: trunk/rtmtools/jp.go.aist.rtm.systemeditor.RCP/src/jp/go/aist/rtm/systemeditor/rcp/SystemEditorApplication.java
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.systemeditor.RCP/src/jp/go/aist/rtm/systemeditor/rcp/SystemEditorApplication.java (rev 0)
+++ trunk/rtmtools/jp.go.aist.rtm.systemeditor.RCP/src/jp/go/aist/rtm/systemeditor/rcp/SystemEditorApplication.java 2013-03-16 15:41:34 UTC (rev 441)
@@ -0,0 +1,27 @@
+package jp.go.aist.rtm.systemeditor.rcp;
+
+import org.eclipse.equinox.app.IApplication;
+import org.eclipse.equinox.app.IApplicationContext;
+import org.eclipse.swt.widgets.Display;
+import org.eclipse.ui.PlatformUI;
+
+public class SystemEditorApplication implements IApplication {
+
+ @Override
+ public Object start(IApplicationContext context) throws Exception {
+ 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();
+ }
+ }
+
+ @Override
+ public void stop() {
+ }
+}
Property changes on: trunk/rtmtools/jp.go.aist.rtm.systemeditor.RCP/src/jp/go/aist/rtm/systemeditor/rcp/SystemEditorApplication.java
___________________________________________________________________
Added: svn:mime-type
+ text/plain
More information about the openrtm-commit
mailing list