Skip to content

Commit 24195bc

Browse files
committed
Started on ServiceStack plugin for eclipse.
Add ref menu with logo working. Started porting dialog.
1 parent 5fdec96 commit 24195bc

File tree

12 files changed

+530
-0
lines changed

12 files changed

+530
-0
lines changed

src/ServiceStackEclipse/.classpath

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.7"/>
4+
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
5+
<classpathentry kind="src" path="src"/>
6+
<classpathentry kind="output" path="bin"/>
7+
</classpath>

src/ServiceStackEclipse/.project

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>net.servicestack.eclipse</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.7
4+
org.eclipse.jdt.core.compiler.compliance=1.7
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.7
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
Manifest-Version: 1.0
2+
Bundle-ManifestVersion: 2
3+
Bundle-Name: Eclipse
4+
Bundle-SymbolicName: net.servicestack.eclipse;singleton:=true
5+
Bundle-Version: 1.0.0.qualifier
6+
Bundle-Vendor: ServiceStack
7+
Require-Bundle: org.eclipse.ui,
8+
org.eclipse.core.resources
9+
Bundle-RequiredExecutionEnvironment: JavaSE-1.7
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
source.. = src/
2+
output.. = bin/
3+
bin.includes = plugin.xml,\
4+
META-INF/,\
5+
.
2.99 KB
Loading
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<module type="JAVA_MODULE" version="4">
3+
<component name="NewModuleRootManager" inherit-compiler-output="false">
4+
<output url="file://$MODULE_DIR$/bin" />
5+
<exclude-output />
6+
<content url="file://$MODULE_DIR$">
7+
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
8+
</content>
9+
<orderEntry type="jdk" jdkName="1.7" jdkType="JavaSDK" />
10+
<orderEntry type="library" exported="" name="ECLIPSE" level="application" />
11+
<orderEntry type="sourceFolder" forTests="false" />
12+
</component>
13+
</module>

src/ServiceStackEclipse/plugin.xml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<?eclipse version="3.4"?>
3+
<plugin>
4+
5+
<extension
6+
point="org.eclipse.ui.popupMenus">
7+
<objectContribution
8+
adaptable="true"
9+
objectClass="org.eclipse.core.resources.IFile"
10+
id="net.servicestack.eclipse.contribution1">
11+
<action
12+
label="Add ServiceStack Reference..."
13+
class="net.servicestack.eclipse.popup.actions.AddReferenceAction"
14+
menubarPath="additions"
15+
enablesFor="1"
16+
icon="icons/logo-16.png"
17+
id="net.servicestack.eclipse.newAction">
18+
</action>
19+
</objectContribution>
20+
</extension>
21+
22+
</plugin>
Lines changed: 159 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,159 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<form xmlns="http://www.intellij.com/uidesigner/form/" version="1" bind-to-class="net.servicestack.eclipse.popup.actions.AddRef">
3+
<grid id="cbd77" binding="contentPane" layout-manager="GridLayoutManager" row-count="3" column-count="1" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1">
4+
<margin top="10" left="10" bottom="10" right="10"/>
5+
<constraints>
6+
<xy x="48" y="102" width="650" height="302"/>
7+
</constraints>
8+
<properties>
9+
<maximumSize width="550" height="320"/>
10+
<minimumSize width="400" height="220"/>
11+
<opaque value="true"/>
12+
<preferredSize width="550" height="220"/>
13+
<requestFocusEnabled value="true"/>
14+
</properties>
15+
<border type="none"/>
16+
<children>
17+
<grid id="94766" layout-manager="GridLayoutManager" row-count="1" column-count="2" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1">
18+
<margin top="0" left="0" bottom="0" right="0"/>
19+
<constraints>
20+
<grid row="2" column="0" row-span="1" col-span="1" vsize-policy="1" hsize-policy="3" anchor="0" fill="3" indent="0" use-parent-layout="false"/>
21+
</constraints>
22+
<properties/>
23+
<border type="none"/>
24+
<children>
25+
<hspacer id="98af6">
26+
<constraints>
27+
<grid row="0" column="0" row-span="1" col-span="1" vsize-policy="1" hsize-policy="6" anchor="0" fill="1" indent="0" use-parent-layout="false"/>
28+
</constraints>
29+
</hspacer>
30+
<grid id="9538f" layout-manager="GridLayoutManager" row-count="1" column-count="2" same-size-horizontally="true" same-size-vertically="false" hgap="-1" vgap="-1">
31+
<margin top="0" left="0" bottom="0" right="0"/>
32+
<constraints>
33+
<grid row="0" column="1" row-span="1" col-span="1" vsize-policy="3" hsize-policy="3" anchor="0" fill="3" indent="0" use-parent-layout="false"/>
34+
</constraints>
35+
<properties/>
36+
<border type="none"/>
37+
<children>
38+
<component id="e7465" class="javax.swing.JButton" binding="buttonOK">
39+
<constraints>
40+
<grid row="0" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="3" anchor="0" fill="1" indent="0" use-parent-layout="false"/>
41+
</constraints>
42+
<properties>
43+
<text value="OK"/>
44+
</properties>
45+
</component>
46+
<component id="5723f" class="javax.swing.JButton" binding="buttonCancel">
47+
<constraints>
48+
<grid row="0" column="1" row-span="1" col-span="1" vsize-policy="0" hsize-policy="3" anchor="0" fill="1" indent="0" use-parent-layout="false"/>
49+
</constraints>
50+
<properties>
51+
<text value="Cancel"/>
52+
</properties>
53+
</component>
54+
</children>
55+
</grid>
56+
</children>
57+
</grid>
58+
<grid id="62ccc" layout-manager="GridLayoutManager" row-count="2" column-count="1" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1">
59+
<margin top="0" left="0" bottom="0" right="0"/>
60+
<constraints>
61+
<grid row="0" column="0" row-span="1" col-span="1" vsize-policy="3" hsize-policy="3" anchor="0" fill="3" indent="0" use-parent-layout="false"/>
62+
</constraints>
63+
<properties>
64+
<focusable value="false"/>
65+
</properties>
66+
<border type="none"/>
67+
<children>
68+
<component id="e88c4" class="javax.swing.JTextPane" binding="errorTextPane">
69+
<constraints>
70+
<grid row="1" column="0" row-span="1" col-span="1" vsize-policy="2" hsize-policy="2" anchor="0" fill="3" indent="0" use-parent-layout="false">
71+
<preferred-size width="150" height="25"/>
72+
</grid>
73+
</constraints>
74+
<properties>
75+
<editable value="false"/>
76+
<focusCycleRoot value="false"/>
77+
<focusable value="true"/>
78+
<font name="Arial"/>
79+
<opaque value="false"/>
80+
<visible value="false"/>
81+
</properties>
82+
</component>
83+
<component id="4af0b" class="javax.swing.JTextPane" binding="infoTextPane">
84+
<constraints>
85+
<grid row="0" column="0" row-span="1" col-span="1" vsize-policy="2" hsize-policy="2" anchor="0" fill="3" indent="0" use-parent-layout="false">
86+
<preferred-size width="150" height="25"/>
87+
</grid>
88+
</constraints>
89+
<properties>
90+
<editable value="false"/>
91+
<focusCycleRoot value="false"/>
92+
<focusable value="false"/>
93+
<font name="Arial"/>
94+
<opaque value="false"/>
95+
<requestFocusEnabled value="false"/>
96+
<text value="To generate the DTO Service Model types for a specific ServiceStack instance, enter the base URI for the remote ServiceStack server and click OK."/>
97+
</properties>
98+
</component>
99+
</children>
100+
</grid>
101+
<grid id="d865d" layout-manager="GridLayoutManager" row-count="3" column-count="3" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1">
102+
<margin top="0" left="0" bottom="0" right="0"/>
103+
<constraints>
104+
<grid row="1" column="0" row-span="1" col-span="1" vsize-policy="3" hsize-policy="3" anchor="0" fill="3" indent="0" use-parent-layout="false"/>
105+
</constraints>
106+
<properties/>
107+
<border type="none"/>
108+
<children>
109+
<component id="4e0fa" class="javax.swing.JLabel">
110+
<constraints>
111+
<grid row="0" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="0" anchor="8" fill="0" indent="0" use-parent-layout="false"/>
112+
</constraints>
113+
<properties>
114+
<labelFor value="21896"/>
115+
<text value="Address Url"/>
116+
</properties>
117+
</component>
118+
<component id="21896" class="javax.swing.JTextField" binding="addressUrlTextField" default-binding="true">
119+
<constraints>
120+
<grid row="0" column="1" row-span="1" col-span="2" vsize-policy="0" hsize-policy="6" anchor="8" fill="1" indent="0" use-parent-layout="false">
121+
<preferred-size width="150" height="-1"/>
122+
</grid>
123+
</constraints>
124+
<properties>
125+
<toolTipText value="eg, http://example.com/"/>
126+
</properties>
127+
</component>
128+
<component id="eb1ba" class="javax.swing.JLabel">
129+
<constraints>
130+
<grid row="1" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="0" anchor="8" fill="0" indent="0" use-parent-layout="false"/>
131+
</constraints>
132+
<properties>
133+
<text value="Package"/>
134+
</properties>
135+
</component>
136+
<component id="885b4" class="javax.swing.JLabel">
137+
<constraints>
138+
<grid row="2" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="0" anchor="8" fill="0" indent="0" use-parent-layout="false"/>
139+
</constraints>
140+
<properties>
141+
<labelFor value="eec01"/>
142+
<text value="Name"/>
143+
</properties>
144+
</component>
145+
<component id="eec01" class="javax.swing.JTextField" binding="nameTextField">
146+
<constraints>
147+
<grid row="2" column="1" row-span="1" col-span="2" vsize-policy="0" hsize-policy="6" anchor="8" fill="1" indent="0" use-parent-layout="false">
148+
<preferred-size width="150" height="-1"/>
149+
</grid>
150+
</constraints>
151+
<properties>
152+
<text value="dto.java"/>
153+
</properties>
154+
</component>
155+
</children>
156+
</grid>
157+
</children>
158+
</grid>
159+
</form>

0 commit comments

Comments
 (0)