File tree 9 files changed +182
-0
lines changed
src/hvl/plugin/parmorel/handlers
9 files changed +182
-0
lines changed Original file line number Diff line number Diff line change
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 >
Original file line number Diff line number Diff line change
1
+ .metadata
2
+ bin /
3
+ tmp /
4
+ * .tmp
5
+ * .bak
6
+ * .swp
7
+ * ~.nib
8
+ local.properties
9
+ .settings /
10
+ .loadpath
11
+ .recommenders
12
+
13
+ # External tool builders
14
+ .externalToolBuilders /
15
+
16
+ # Locally stored "Eclipse launch configurations"
17
+ * .launch
18
+
19
+ # CDT- autotools
20
+ .autotools
21
+
22
+ # Java annotation processor (APT)
23
+ .factorypath
24
+
25
+ # sbteclipse plugin
26
+ .target
27
+
28
+ # Tern plugin
29
+ .tern-project
30
+
31
+ # TeXlipse plugin
32
+ .texlipse
33
+
34
+ # STS (Spring Tool Suite)
35
+ .springBeans
36
+
37
+ # Code Recommenders
38
+ .recommenders /
39
+
40
+ # Annotation Processing
41
+ .apt_generated /
42
+
43
+ # Scala IDE specific (Scala & Java development for Eclipse)
44
+ .cache-main
45
+ .scala_dependencies
46
+ .worksheet
47
+
48
+ # Mac specific
49
+ .DS_Store
50
+ /bin /
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2
+ <projectDescription >
3
+ <name >hvl.plugin.parmorel</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 >
Original file line number Diff line number Diff line change
1
+ Manifest-Version : 1.0
2
+ Bundle-ManifestVersion : 2
3
+ Bundle-Name : Parmorel
4
+ Bundle-SymbolicName : hvl.plugin.parmorel;singleton:=true
5
+ Bundle-Version : 1.0.0.qualifier
6
+ Require-Bundle : org.eclipse.ui
7
+ Automatic-Module-Name : hvl.plugin.parmorel
8
+ Bundle-RequiredExecutionEnvironment : JavaSE-1.8
Original file line number Diff line number Diff line change
1
+ source.. = src/
2
+ output.. = bin/
3
+ bin.includes = plugin.xml,\
4
+ META-INF/,\
5
+ .,\
6
+ icons/
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2
+ <?eclipse version =" 3.4" ?>
3
+ <plugin >
4
+
5
+ <extension
6
+ point =" org.eclipse.ui.commands" >
7
+ <category
8
+ id =" hvl.plugin.parmorel.commands.category"
9
+ name =" Sample Category" >
10
+ </category >
11
+ <command
12
+ categoryId =" hvl.plugin.parmorel.commands.category"
13
+ name =" Sample Command"
14
+ id =" hvl.plugin.parmorel.commands.sampleCommand" >
15
+ </command >
16
+ </extension >
17
+ <extension
18
+ point =" org.eclipse.ui.handlers" >
19
+ <handler
20
+ class =" hvl.plugin.parmorel.handlers.SampleHandler"
21
+ commandId =" hvl.plugin.parmorel.commands.sampleCommand" >
22
+ </handler >
23
+ </extension >
24
+ <extension
25
+ point =" org.eclipse.ui.bindings" >
26
+ <key
27
+ commandId =" hvl.plugin.parmorel.commands.sampleCommand"
28
+ schemeId =" org.eclipse.ui.defaultAcceleratorConfiguration"
29
+ contextId =" org.eclipse.ui.contexts.window"
30
+ sequence =" M1+6" >
31
+ </key >
32
+ </extension >
33
+ <extension
34
+ point =" org.eclipse.ui.menus" >
35
+ <menuContribution
36
+ locationURI =" menu:org.eclipse.ui.main.menu?after=additions" >
37
+ <menu
38
+ id =" hvl.plugin.parmorel.menus.sampleMenu"
39
+ label =" Sample Menu"
40
+ mnemonic =" M" >
41
+ <command
42
+ commandId =" hvl.plugin.parmorel.commands.sampleCommand"
43
+ id =" hvl.plugin.parmorel.menus.sampleCommand"
44
+ mnemonic =" S" >
45
+ </command >
46
+ </menu >
47
+ </menuContribution >
48
+ <menuContribution
49
+ locationURI =" toolbar:org.eclipse.ui.main.toolbar?after=additions" >
50
+ <toolbar
51
+ id =" hvl.plugin.parmorel.toolbars.sampleToolbar" >
52
+ <command
53
+ id =" hvl.plugin.parmorel.toolbars.sampleCommand"
54
+ commandId =" hvl.plugin.parmorel.commands.sampleCommand"
55
+ icon =" icons/sample.png"
56
+ tooltip =" Say hello world" >
57
+ </command >
58
+ </toolbar >
59
+ </menuContribution >
60
+ </extension >
61
+
62
+ </plugin >
Original file line number Diff line number Diff line change
1
+ package hvl .plugin .parmorel .handlers ;
2
+
3
+ import org .eclipse .core .commands .AbstractHandler ;
4
+ import org .eclipse .core .commands .ExecutionEvent ;
5
+ import org .eclipse .core .commands .ExecutionException ;
6
+ import org .eclipse .ui .IWorkbenchWindow ;
7
+ import org .eclipse .ui .handlers .HandlerUtil ;
8
+ import org .eclipse .jface .dialogs .MessageDialog ;
9
+
10
+ public class SampleHandler extends AbstractHandler {
11
+
12
+ @ Override
13
+ public Object execute (ExecutionEvent event ) throws ExecutionException {
14
+ IWorkbenchWindow window = HandlerUtil .getActiveWorkbenchWindowChecked (event );
15
+ MessageDialog .openInformation (
16
+ window .getShell (),
17
+ "Parmorel" ,
18
+ "Hello, Eclipse world" );
19
+ return null ;
20
+ }
21
+ }
You can’t perform that action at this time.
0 commit comments