X Tutup
Skip to content

Commit a28e2a3

Browse files
committed
Adds example for DnD of controls
1 parent aec2a9e commit a28e2a3

File tree

22 files changed

+530
-0
lines changed

22 files changed

+530
-0
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<classpath>
3+
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>
4+
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
5+
<classpathentry kind="src" path="src"/>
6+
<classpathentry kind="output" path="bin"/>
7+
</classpath>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/bin/
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<projectDescription>
3+
<name>com.vogella.eclipse.dndcontrols</name>
4+
<comment></comment>
5+
<projects>
6+
</projects>
7+
<buildSpec>
8+
<buildCommand>
9+
<name>org.eclipse.jdt.core.javabuilder</name>
10+
<arguments>
11+
</arguments>
12+
</buildCommand>
13+
<buildCommand>
14+
<name>org.eclipse.pde.ManifestBuilder</name>
15+
<arguments>
16+
</arguments>
17+
</buildCommand>
18+
<buildCommand>
19+
<name>org.eclipse.pde.SchemaBuilder</name>
20+
<arguments>
21+
</arguments>
22+
</buildCommand>
23+
</buildSpec>
24+
<natures>
25+
<nature>org.eclipse.pde.PluginNature</nature>
26+
<nature>org.eclipse.jdt.core.javanature</nature>
27+
</natures>
28+
</projectDescription>
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
eclipse.preferences.version=1
2+
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
3+
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
4+
org.eclipse.jdt.core.compiler.compliance=1.8
5+
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
6+
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
7+
org.eclipse.jdt.core.compiler.source=1.8
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<application:Application xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:advanced="http://www.eclipse.org/ui/2010/UIModel/application/ui/advanced" xmlns:application="http://www.eclipse.org/ui/2010/UIModel/application" xmlns:basic="http://www.eclipse.org/ui/2010/UIModel/application/ui/basic" xmlns:menu="http://www.eclipse.org/ui/2010/UIModel/application/ui/menu" xmi:id="_6wlLcMgZEeSyMNYR5xypkQ" elementId="com.vogella.eclipse.dndcontrols.application" bindingContexts="_6wlLecgZEeSyMNYR5xypkQ">
3+
<children xsi:type="basic:TrimmedWindow" xmi:id="_6wlLccgZEeSyMNYR5xypkQ" elementId="com.vogella.eclipse.dndcontrols.window.main" label="Eclipse 4 RCP Application" width="500" height="400">
4+
<children xsi:type="advanced:PerspectiveStack" xmi:id="_6wlLkMgZEeSyMNYR5xypkQ" elementId="org.eclipse.ui.ide.perspectivestack">
5+
<children xsi:type="advanced:Perspective" xmi:id="_6wlLkcgZEeSyMNYR5xypkQ" elementId="com.vogella.eclipse.dndcontrols.perspective.sample">
6+
<children xsi:type="basic:PartSashContainer" xmi:id="_6wlLksgZEeSyMNYR5xypkQ" elementId="com.vogella.eclipse.dndcontrols.partsashcontainer.sample">
7+
<children xsi:type="basic:PartSashContainer" xmi:id="_IKPXEEjOEea_1OTObn1rMg" elementId="com.vogella.eclipse.dndcontrols.partsashcontainer.0">
8+
<children xsi:type="basic:Part" xmi:id="_6wlLlMgZEeSyMNYR5xypkQ" elementId="com.vogella.eclipse.dndcontrols.part.sample" contributionURI="bundleclass://com.vogella.eclipse.dndcontrols/com.vogella.eclipse.dndcontrols.View1" label="Sample Part"/>
9+
<children xsi:type="basic:Part" xmi:id="_7mwoYEjNEea_1OTObn1rMg" elementId="com.vogella.eclipse.dndcontrols.part.view2" contributionURI="bundleclass://com.vogella.eclipse.dndcontrols/com.vogella.eclipse.dndcontrols.parts.View2" label="View2"/>
10+
</children>
11+
</children>
12+
</children>
13+
</children>
14+
<mainMenu xmi:id="_6wlLicgZEeSyMNYR5xypkQ" elementId="org.eclipse.ui.main.menu">
15+
<children xsi:type="menu:Menu" xmi:id="_6wlLisgZEeSyMNYR5xypkQ" elementId="file" label="File">
16+
<children xsi:type="menu:HandledMenuItem" xmi:id="_6wlLi8gZEeSyMNYR5xypkQ" elementId="com.vogella.eclipse.dndcontrols.handleditem.file.open" label="Open" iconURI="platform:/plugin/com.vogella.eclipse.dndcontrols/icons/sample.png" command="_6wlLgMgZEeSyMNYR5xypkQ"/>
17+
<children xsi:type="menu:HandledMenuItem" xmi:id="_6wlLjMgZEeSyMNYR5xypkQ" elementId="com.vogella.eclipse.dndcontrols.handleditem.save" label="Save" iconURI="platform:/plugin/com.vogella.eclipse.dndcontrols/icons/save_edit.png" command="_6wlLg8gZEeSyMNYR5xypkQ"/>
18+
<children xsi:type="menu:HandledMenuItem" xmi:id="_6wlLjcgZEeSyMNYR5xypkQ" elementId="com.vogella.eclipse.dndcontrols.handleditem.quit" label="Quit" command="_6wlLfMgZEeSyMNYR5xypkQ"/>
19+
</children>
20+
<children xsi:type="menu:Menu" xmi:id="_6wlLjsgZEeSyMNYR5xypkQ" elementId="help" label="Help">
21+
<children xsi:type="menu:HandledMenuItem" xmi:id="_6wlLj8gZEeSyMNYR5xypkQ" elementId="com.vogella.eclipse.dndcontrols.handleditem.about" label="About" command="_6wlLhsgZEeSyMNYR5xypkQ"/>
22+
</children>
23+
</mainMenu>
24+
<trimBars xmi:id="_6wlLlcgZEeSyMNYR5xypkQ" elementId="com.vogella.eclipse.dndcontrols.trimbar.top">
25+
<children xsi:type="menu:ToolBar" xmi:id="_6wlLlsgZEeSyMNYR5xypkQ" elementId="org.eclipse.ui.main.toolbar">
26+
<children xsi:type="menu:HandledToolItem" xmi:id="_6wlLl8gZEeSyMNYR5xypkQ" elementId="com.vogella.eclipse.dndcontrols.handleditem.trimbar.top.open" iconURI="platform:/plugin/com.vogella.eclipse.dndcontrols/icons/sample.png" command="_6wlLgMgZEeSyMNYR5xypkQ"/>
27+
<children xsi:type="menu:HandledToolItem" xmi:id="_6wlLmMgZEeSyMNYR5xypkQ" elementId="com.vogella.eclipse.dndcontrols.handleditem.trimbar.top.save" iconURI="platform:/plugin/com.vogella.eclipse.dndcontrols/icons/save_edit.png" command="_6wlLg8gZEeSyMNYR5xypkQ"/>
28+
</children>
29+
</trimBars>
30+
</children>
31+
<handlers xmi:id="_6wlLfcgZEeSyMNYR5xypkQ" elementId="com.vogella.eclipse.dndcontrols.handler.quitCommand" contributionURI="bundleclass://com.vogella.eclipse.dndcontrols/com.vogella.eclipse.dndcontrols.handlers.QuitHandler" command="_6wlLfMgZEeSyMNYR5xypkQ"/>
32+
<handlers xmi:id="_6wlLgcgZEeSyMNYR5xypkQ" elementId="com.vogella.eclipse.dndcontrols.handler.openCommand" contributionURI="bundleclass://com.vogella.eclipse.dndcontrols/com.vogella.eclipse.dndcontrols.handlers.OpenHandler" command="_6wlLgMgZEeSyMNYR5xypkQ"/>
33+
<handlers xmi:id="_6wlLhMgZEeSyMNYR5xypkQ" elementId="com.vogella.eclipse.dndcontrols.handler.saveCommand" contributionURI="bundleclass://com.vogella.eclipse.dndcontrols/com.vogella.eclipse.dndcontrols.handlers.SaveHandler" command="_6wlLg8gZEeSyMNYR5xypkQ"/>
34+
<handlers xmi:id="_6wlLh8gZEeSyMNYR5xypkQ" elementId="com.vogella.eclipse.dndcontrols.handler.aboutCommand" contributionURI="bundleclass://com.vogella.eclipse.dndcontrols/com.vogella.eclipse.dndcontrols.handlers.AboutHandler" command="_6wlLhsgZEeSyMNYR5xypkQ"/>
35+
<bindingTables xmi:id="_6wlLfsgZEeSyMNYR5xypkQ" elementId="com.vogella.eclipse.dndcontrols.bindingtable" bindingContext="_6wlLecgZEeSyMNYR5xypkQ">
36+
<bindings xmi:id="_6wlLf8gZEeSyMNYR5xypkQ" elementId="com.vogella.eclipse.dndcontrols.keybinding.m1q" keySequence="M1+Q" command="_6wlLfMgZEeSyMNYR5xypkQ"/>
37+
<bindings xmi:id="_6wlLgsgZEeSyMNYR5xypkQ" elementId="com.vogella.eclipse.dndcontrols.keybinding.m1o" keySequence="M1+O" command="_6wlLgMgZEeSyMNYR5xypkQ"/>
38+
<bindings xmi:id="_6wlLhcgZEeSyMNYR5xypkQ" elementId="com.vogella.eclipse.dndcontrols.keybinding.m1s" keySequence="M1+S" command="_6wlLg8gZEeSyMNYR5xypkQ"/>
39+
<bindings xmi:id="_6wlLiMgZEeSyMNYR5xypkQ" elementId="com.vogella.eclipse.dndcontrols.keybinding.m1a" keySequence="M1+A" command="_6wlLhsgZEeSyMNYR5xypkQ"/>
40+
</bindingTables>
41+
<rootContext xmi:id="_6wlLecgZEeSyMNYR5xypkQ" elementId="org.eclipse.ui.contexts.dialogAndWindow" name="In Dialog and Windows">
42+
<children xmi:id="_6wlLesgZEeSyMNYR5xypkQ" elementId="org.eclipse.ui.contexts.window" name="In Windows"/>
43+
<children xmi:id="_6wlLe8gZEeSyMNYR5xypkQ" elementId="org.eclipse.ui.contexts.dialog" name="In Dialogs"/>
44+
</rootContext>
45+
<commands xmi:id="_6wlLfMgZEeSyMNYR5xypkQ" elementId="org.eclipse.ui.file.exit" commandName="quitCommand"/>
46+
<commands xmi:id="_6wlLgMgZEeSyMNYR5xypkQ" elementId="org.eclipse.ui.file.open" commandName="openCommand"/>
47+
<commands xmi:id="_6wlLg8gZEeSyMNYR5xypkQ" elementId="org.eclipse.ui.file.save" commandName="saveCommand"/>
48+
<commands xmi:id="_6wlLhsgZEeSyMNYR5xypkQ" elementId="org.eclipse.ui.help.aboutAction" commandName="aboutCommand"/>
49+
<addons xmi:id="_6wlLcsgZEeSyMNYR5xypkQ" elementId="org.eclipse.e4.core.commands.service" contributionURI="bundleclass://org.eclipse.e4.core.commands/org.eclipse.e4.core.commands.CommandServiceAddon"/>
50+
<addons xmi:id="_6wlLc8gZEeSyMNYR5xypkQ" elementId="org.eclipse.e4.ui.contexts.service" contributionURI="bundleclass://org.eclipse.e4.ui.services/org.eclipse.e4.ui.services.ContextServiceAddon"/>
51+
<addons xmi:id="_6wlLdMgZEeSyMNYR5xypkQ" elementId="org.eclipse.e4.ui.bindings.service" contributionURI="bundleclass://org.eclipse.e4.ui.bindings/org.eclipse.e4.ui.bindings.BindingServiceAddon"/>
52+
<addons xmi:id="_6wlLdcgZEeSyMNYR5xypkQ" elementId="org.eclipse.e4.ui.workbench.commands.model" contributionURI="bundleclass://org.eclipse.e4.ui.workbench/org.eclipse.e4.ui.internal.workbench.addons.CommandProcessingAddon"/>
53+
<addons xmi:id="_6wlLdsgZEeSyMNYR5xypkQ" elementId="org.eclipse.e4.ui.workbench.handler.model" contributionURI="bundleclass://org.eclipse.e4.ui.workbench/org.eclipse.e4.ui.internal.workbench.addons.HandlerProcessingAddon"/>
54+
<addons xmi:id="_6wlLd8gZEeSyMNYR5xypkQ" elementId="org.eclipse.e4.ui.workbench.contexts.model" contributionURI="bundleclass://org.eclipse.e4.ui.workbench/org.eclipse.e4.ui.internal.workbench.addons.ContextProcessingAddon"/>
55+
<addons xmi:id="_6wlLeMgZEeSyMNYR5xypkQ" elementId="org.eclipse.e4.ui.workbench.bindings.model" contributionURI="bundleclass://org.eclipse.e4.ui.workbench.swt/org.eclipse.e4.ui.workbench.swt.util.BindingProcessingAddon"/>
56+
</application:Application>
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
Manifest-Version: 1.0
2+
Bundle-ManifestVersion: 2
3+
Bundle-Name: Dndcontrols
4+
Bundle-SymbolicName: com.vogella.eclipse.dndcontrols;singleton:=true
5+
Bundle-Version: 1.0.0.qualifier
6+
Bundle-Vendor: VOGELLA
7+
Require-Bundle: javax.inject;bundle-version="0.0.0",
8+
org.eclipse.core.runtime;bundle-version="0.0.0",
9+
org.eclipse.swt;bundle-version="0.0.0",
10+
org.eclipse.e4.ui.model.workbench;bundle-version="0.0.0",
11+
org.eclipse.jface;bundle-version="0.0.0",
12+
org.eclipse.e4.ui.services;bundle-version="0.0.0",
13+
org.eclipse.e4.ui.workbench;bundle-version="0.0.0",
14+
org.eclipse.e4.core.di;bundle-version="0.0.0",
15+
org.eclipse.e4.ui.di;bundle-version="0.0.0",
16+
org.eclipse.e4.core.contexts;bundle-version="0.0.0"
17+
Bundle-RequiredExecutionEnvironment: JavaSE-1.8
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
source.. = src/
2+
output.. = bin/
3+
bin.includes = plugin.xml,\
4+
META-INF/,\
5+
.,\
6+
icons/,\
7+
css/default.css,\
8+
Application.e4xmi
Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<?pde version="3.5"?>
3+
4+
<product name="com.vogella.eclipse.dndcontrols" id="com.vogella.eclipse.dndcontrols.product" application="org.eclipse.e4.ui.workbench.swt.E4Application" version="1.0.0.qualifier" useFeatures="false" includeLaunchers="true">
5+
6+
<configIni use="default">
7+
</configIni>
8+
9+
<launcherArgs>
10+
<programArgs>-clearPersistedState</programArgs>
11+
<vmArgsMac>-XstartOnFirstThread -Dorg.eclipse.swt.internal.carbon.smallFonts</vmArgsMac>
12+
</launcherArgs>
13+
14+
<windowImages/>
15+
16+
<plugins>
17+
<plugin id="com.vogella.eclipse.dndcontrols"/>
18+
<plugin id="com.ibm.icu"/>
19+
<plugin id="javax.annotation"/>
20+
<plugin id="javax.inject"/>
21+
<plugin id="javax.xml"/>
22+
<plugin id="org.apache.batik.css"/>
23+
<plugin id="org.apache.batik.util"/>
24+
<plugin id="org.apache.batik.util.gui"/>
25+
<plugin id="org.apache.commons.jxpath"/>
26+
<plugin id="org.apache.commons.logging"/>
27+
<plugin id="org.eclipse.core.commands"/>
28+
<plugin id="org.eclipse.core.contenttype"/>
29+
<plugin id="org.eclipse.core.databinding"/>
30+
<plugin id="org.eclipse.core.databinding.beans"/>
31+
<plugin id="org.eclipse.core.databinding.observable"/>
32+
<plugin id="org.eclipse.core.databinding.property"/>
33+
<plugin id="org.eclipse.core.expressions"/>
34+
<plugin id="org.eclipse.core.filesystem"/>
35+
<plugin id="org.eclipse.core.filesystem.aix.ppc" fragment="true"/>
36+
<plugin id="org.eclipse.core.filesystem.hpux.ia64_32" fragment="true"/>
37+
<plugin id="org.eclipse.core.filesystem.linux.ppc" fragment="true"/>
38+
<plugin id="org.eclipse.core.filesystem.linux.x86" fragment="true"/>
39+
<plugin id="org.eclipse.core.filesystem.linux.x86_64" fragment="true"/>
40+
<plugin id="org.eclipse.core.filesystem.macosx" fragment="true"/>
41+
<plugin id="org.eclipse.core.filesystem.solaris.sparc" fragment="true"/>
42+
<plugin id="org.eclipse.core.filesystem.win32.x86" fragment="true"/>
43+
<plugin id="org.eclipse.core.filesystem.win32.x86_64" fragment="true"/>
44+
<plugin id="org.eclipse.core.jobs"/>
45+
<plugin id="org.eclipse.core.resources"/>
46+
<plugin id="org.eclipse.core.resources.win32.x86" fragment="true"/>
47+
<plugin id="org.eclipse.core.runtime"/>
48+
<plugin id="org.eclipse.e4.core.commands"/>
49+
<plugin id="org.eclipse.e4.core.contexts"/>
50+
<plugin id="org.eclipse.e4.core.di"/>
51+
<plugin id="org.eclipse.e4.core.di.annotations"/>
52+
<plugin id="org.eclipse.e4.core.di.extensions"/>
53+
<plugin id="org.eclipse.e4.core.services"/>
54+
<plugin id="org.eclipse.e4.emf.xpath"/>
55+
<plugin id="org.eclipse.e4.ui.bindings"/>
56+
<plugin id="org.eclipse.e4.ui.css.core"/>
57+
<plugin id="org.eclipse.e4.ui.css.swt"/>
58+
<plugin id="org.eclipse.e4.ui.css.swt.theme"/>
59+
<plugin id="org.eclipse.e4.ui.di"/>
60+
<plugin id="org.eclipse.e4.ui.model.workbench"/>
61+
<plugin id="org.eclipse.e4.ui.services"/>
62+
<plugin id="org.eclipse.e4.ui.swt.gtk" fragment="true"/>
63+
<plugin id="org.eclipse.e4.ui.widgets"/>
64+
<plugin id="org.eclipse.e4.ui.workbench"/>
65+
<plugin id="org.eclipse.e4.ui.workbench.renderers.swt"/>
66+
<plugin id="org.eclipse.e4.ui.workbench.renderers.swt.cocoa" fragment="true"/>
67+
<plugin id="org.eclipse.e4.ui.workbench.swt"/>
68+
<plugin id="org.eclipse.e4.ui.workbench3"/>
69+
<plugin id="org.eclipse.emf.common"/>
70+
<plugin id="org.eclipse.emf.databinding"/>
71+
<plugin id="org.eclipse.emf.ecore"/>
72+
<plugin id="org.eclipse.emf.ecore.change"/>
73+
<plugin id="org.eclipse.emf.ecore.xmi"/>
74+
<plugin id="org.eclipse.equinox.app"/>
75+
<plugin id="org.eclipse.equinox.common"/>
76+
<plugin id="org.eclipse.equinox.concurrent"/>
77+
<plugin id="org.eclipse.equinox.ds"/>
78+
<plugin id="org.eclipse.equinox.event"/>
79+
<plugin id="org.eclipse.equinox.preferences"/>
80+
<plugin id="org.eclipse.equinox.registry"/>
81+
<plugin id="org.eclipse.equinox.util"/>
82+
<plugin id="org.eclipse.jface"/>
83+
<plugin id="org.eclipse.jface.databinding"/>
84+
<plugin id="org.eclipse.osgi"/>
85+
<plugin id="org.eclipse.osgi.compatibility.state" fragment="true"/>
86+
<plugin id="org.eclipse.osgi.services"/>
87+
<plugin id="org.eclipse.swt"/>
88+
<plugin id="org.eclipse.swt.cocoa.macosx.x86_64" fragment="true"/>
89+
<plugin id="org.eclipse.swt.gtk.linux.ppc" fragment="true"/>
90+
<plugin id="org.eclipse.swt.gtk.linux.ppc64" fragment="true"/>
91+
<plugin id="org.eclipse.swt.gtk.linux.s390" fragment="true"/>
92+
<plugin id="org.eclipse.swt.gtk.linux.s390x" fragment="true"/>
93+
<plugin id="org.eclipse.swt.gtk.linux.x86" fragment="true"/>
94+
<plugin id="org.eclipse.swt.gtk.linux.x86_64" fragment="true"/>
95+
<plugin id="org.eclipse.swt.gtk.solaris.sparc" fragment="true"/>
96+
<plugin id="org.eclipse.swt.gtk.solaris.x86" fragment="true"/>
97+
<plugin id="org.eclipse.swt.win32.win32.x86" fragment="true"/>
98+
<plugin id="org.eclipse.swt.win32.win32.x86_64" fragment="true"/>
99+
<plugin id="org.w3c.css.sac"/>
100+
<plugin id="org.w3c.dom.events"/>
101+
<plugin id="org.w3c.dom.smil"/>
102+
<plugin id="org.w3c.dom.svg"/>
103+
</plugins>
104+
105+
106+
</product>

com.vogella.eclipse.dndcontrols/css/default.css

Whitespace-only changes.
642 Bytes
Loading

0 commit comments

Comments
 (0)
X Tutup