Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 186722 Details for
Bug 305988
[Tooling] Templates: support IApplication
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
Final patch
305988.patch (text/plain), 25.76 KB, created by
Elias Volanakis
on 2011-01-13 09:09:54 EST
(
hide
)
Description:
Final patch
Filename:
MIME Type:
Creator:
Elias Volanakis
Created:
2011-01-13 09:09:54 EST
Size:
25.76 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.rap.ui.templates >Index: plugin.properties >=================================================================== >RCS file: /cvsroot/rt/org.eclipse.rap/tooling/org.eclipse.rap.ui.templates/plugin.properties,v >retrieving revision 1.5 >diff -u -r1.5 plugin.properties >--- plugin.properties 16 Mar 2010 10:29:19 -0000 1.5 >+++ plugin.properties 13 Jan 2011 14:09:09 -0000 >@@ -18,7 +18,7 @@ > helloRAP.description = \ > <p>This wizard creates a minimal RAP application that consists of an application window with a title.</p>\ > <p><b>Extensions Used</b></p>\ >-<li>org.eclipse.rap.ui.entrypoint</li>\ >+<li>org.eclipse.core.runtime.applications</li>\ > <li>org.eclipse.ui.perspectives</li>\ > <p>This code will need the <b>RAP target</b> to compile.</p> > >@@ -26,7 +26,7 @@ > viewRAP.description = \ > <p>This wizard creates a RAP application that consists of an application window with a single view.</p>\ > <p><b>Extensions Used</b></p>\ >-<li>org.eclipse.rap.ui.entrypoint</li>\ >+<li>org.eclipse.core.runtime.applications</li>\ > <li>org.eclipse.ui.perspectives</li>\ > <li>org.eclipse.ui.views</li>\ > <li>org.eclipse.rap.ui.branding</li>\ >@@ -40,7 +40,7 @@ > <li>create perspectives with placeholders for new views</li>\ > <li>open modal dialogs</li>\ > <p><b>Extensions Used</b></p>\ >-<li>org.eclipse.rap.ui.entrypoint</li>\ >+<li>org.eclipse.core.runtime.applications</li>\ > <li>org.eclipse.ui.perspectives</li>\ > <li>org.eclipse.ui.views</li>\ > <li>org.eclipse.ui.commands</li>\ >Index: src/org/eclipse/rap/internal/ui/templates/XmlNames.java >=================================================================== >RCS file: /cvsroot/rt/org.eclipse.rap/tooling/org.eclipse.rap.ui.templates/src/org/eclipse/rap/internal/ui/templates/XmlNames.java,v >retrieving revision 1.2 >diff -u -r1.2 XmlNames.java >--- src/org/eclipse/rap/internal/ui/templates/XmlNames.java 16 Mar 2010 10:29:19 -0000 1.2 >+++ src/org/eclipse/rap/internal/ui/templates/XmlNames.java 13 Jan 2011 14:09:09 -0000 >@@ -12,16 +12,19 @@ > public static final String ATT_ICON = "icon"; //$NON-NLS-1$ > public static final String ATT_ID = "id"; //$NON-NLS-1$ > public static final String ATT_NAME = "name"; //$NON-NLS-1$ >- public static final String ATT_PARAMETER = "parameter"; //$NON-NLS-1$ > public static final String ATT_SERVLET = "servletName"; //$NON-NLS-1$ > public static final String ATT_DEFAULT_ENTRYPOINT = "defaultEntrypointId"; //$NON-NLS-1$ > public static final String ATT_THEME_ID = "themeId"; //$NON-NLS-1$ > public static final String ATT_TITLE = "title"; //$NON-NLS-1$ > public static final String ATT_DEFAULT_LAYOUT = "defaultLayoutId"; //$NON-NLS-1$ >+ public static final String ATT_CARDINALITY = "cardinality"; //$NON-NLS-1$ >+ public static final String ATT_THREAD = "thread"; //$NON-NLS-1$ >+ public static final String ATT_VISIBLE = "visible"; //$NON-NLS-1$ > >+ public static final String ELEM_APPLICATION = "application"; //$NON-NLS-1$ >+ public static final String ELEM_RUN = "run"; //$NON-NLS-1$ > public static final String ELEM_CATEGORY = "category"; //$NON-NLS-1$ > public static final String ELEM_COMMAND = "command"; //$NON-NLS-1$ >- public static final String ELEM_ENTRYPOINT = "entrypoint"; //$NON-NLS-1$ > public static final String ELEM_PERSPECTIVE = "perspective"; //$NON-NLS-1$ > public static final String ELEM_VIEW = "view"; //$NON-NLS-1$ > public static final String ELEM_BRANDING = "branding"; //$NON-NLS-1$ >@@ -30,7 +33,8 @@ > = "defaultStackPresentation"; //$NON-NLS-1$ > > public static final String XID_COMMANDS = "org.eclipse.ui.commands"; //$NON-NLS-1$ >- public static final String XID_ENTRYPOINT = "org.eclipse.rap.ui.entrypoint"; //$NON-NLS-1$ >+ public static final String XID_APPLICATION >+ = "org.eclipse.core.runtime.applications"; //$NON-NLS-1$ > public static final String XID_PERSPECTIVES = "org.eclipse.ui.perspectives"; //$NON-NLS-1$ > public static final String XID_VIEWS = "org.eclipse.ui.views"; //$NON-NLS-1$ > public static final String XID_BRANDING = "org.eclipse.rap.ui.branding"; //$NON-NLS-1$ >Index: src/org/eclipse/rap/internal/ui/templates/rap/AbstractRAPTemplate.java >=================================================================== >RCS file: /cvsroot/rt/org.eclipse.rap/tooling/org.eclipse.rap.ui.templates/src/org/eclipse/rap/internal/ui/templates/rap/AbstractRAPTemplate.java,v >retrieving revision 1.5 >diff -u -r1.5 AbstractRAPTemplate.java >--- src/org/eclipse/rap/internal/ui/templates/rap/AbstractRAPTemplate.java 4 Jun 2009 11:43:25 -0000 1.5 >+++ src/org/eclipse/rap/internal/ui/templates/rap/AbstractRAPTemplate.java 13 Jan 2011 14:09:09 -0000 >@@ -32,6 +32,8 @@ > protected static final String KEY_WINDOW_TITLE = "windowTitle"; //$NON-NLS-1$ > protected static final String TEMPLATES_DIRECTORY = "templates"; //$NON-NLS-1$ > >+ public abstract String getApplicationId(); >+ > protected final URL getInstallURL() { > return TemplateUtil.getInstallURL(); > } >@@ -86,10 +88,14 @@ > return factory.createElement( extension ); > } > >- protected final String getApplicationName() { >- return getStringOption( KEY_APPLICATION_CLASS ); >+ protected final String getApplicationClass() { >+ return getPackageName() + "." + getStringOption( KEY_APPLICATION_CLASS ); > } > >+ public final String getFullApplicationId() { >+ return getPluginId() + "." + getApplicationId(); >+ } >+ > protected final String getPackageName() { > return getStringOption( KEY_PACKAGE_NAME ); > } >Index: src/org/eclipse/rap/internal/ui/templates/rap/HelloRAPTemplate.java >=================================================================== >RCS file: /cvsroot/rt/org.eclipse.rap/tooling/org.eclipse.rap.ui.templates/src/org/eclipse/rap/internal/ui/templates/rap/HelloRAPTemplate.java,v >retrieving revision 1.4 >diff -u -r1.4 HelloRAPTemplate.java >--- src/org/eclipse/rap/internal/ui/templates/rap/HelloRAPTemplate.java 6 Jan 2011 16:46:36 -0000 1.4 >+++ src/org/eclipse/rap/internal/ui/templates/rap/HelloRAPTemplate.java 13 Jan 2011 14:09:09 -0000 >@@ -33,35 +33,41 @@ > public String getSectionId() { > return "helloRAP"; //$NON-NLS-1$ > } >+ >+ public String getApplicationId() { >+ return "helloapp"; >+ } > > protected void updateModel( final IProgressMonitor monitor ) > throws CoreException > { >- createEntryPointsExtension(); >+ createApplicationExtension(); > createPerspectivesExtension(); > } > > /////////////////// > // helping methods > >- private void createEntryPointsExtension() throws CoreException { >- IPluginExtension extension = createExtension( XmlNames.XID_ENTRYPOINT, >+ private void createApplicationExtension() throws CoreException { >+ IPluginExtension extension = createExtension( XmlNames.XID_APPLICATION, > true ); >- IPluginElement element = createElement( extension ); >- element.setName( XmlNames.ELEM_ENTRYPOINT ); >- element.setAttribute( XmlNames.ATT_CLASS, >- getEntrypointId() ); //$NON-NLS-1$ >- element.setAttribute( XmlNames.ATT_ID, >- getEntrypointId() ); //$NON-NLS-1$ >- element.setAttribute( XmlNames.ATT_PARAMETER, "hello" ); //$NON-NLS-1$ >- extension.add( element ); >+ extension.setId( getApplicationId() ); >+ IPluginElement applicationElement = createElement( extension ); >+ applicationElement.setName( XmlNames.ELEM_APPLICATION ); >+ applicationElement.setAttribute( XmlNames.ATT_VISIBLE, >+ "true" ); //$NON-NLS-1$ >+ applicationElement.setAttribute( XmlNames.ATT_CARDINALITY, >+ "singleton-global" ); //$NON-NLS-1$ >+ applicationElement.setAttribute( XmlNames.ATT_THREAD, >+ "main" ); //$NON-NLS-1$ >+ extension.add( applicationElement ); >+ IPluginElement runElement = createElement( extension ); >+ runElement.setName( XmlNames.ELEM_RUN ); //$NON-NLS-1$ >+ runElement.setAttribute( XmlNames.ATT_CLASS, getApplicationClass() ); //$NON-NLS-1$ >+ applicationElement.add( runElement ); > addExtensionToPlugin( extension ); > } > >- private String getEntrypointId() { >- return getPackageName() + "." + getApplicationName(); >- } >- > private void createPerspectivesExtension() throws CoreException { > IPluginExtension extension > = createExtension( XmlNames.XID_PERSPECTIVES, true ); >Index: src/org/eclipse/rap/internal/ui/templates/rap/HelloRAPWizard.java >=================================================================== >RCS file: /cvsroot/rt/org.eclipse.rap/tooling/org.eclipse.rap.ui.templates/src/org/eclipse/rap/internal/ui/templates/rap/HelloRAPWizard.java,v >retrieving revision 1.3 >diff -u -r1.3 HelloRAPWizard.java >--- src/org/eclipse/rap/internal/ui/templates/rap/HelloRAPWizard.java 16 Mar 2010 10:29:19 -0000 1.3 >+++ src/org/eclipse/rap/internal/ui/templates/rap/HelloRAPWizard.java 13 Jan 2011 14:09:09 -0000 >@@ -12,19 +12,22 @@ > > public class HelloRAPWizard extends AbstractRAPWizard { > >+ private AbstractRAPTemplate template; >+ > public void init( final IFieldData data ) { > super.init( data ); > setWindowTitle( Messages.helloRAPWizard_windowTitle ); > } > > public ITemplateSection[] createTemplateSections() { >+ template = new HelloRAPTemplate(); > return new ITemplateSection[] { >- new HelloRAPTemplate() >+ template > }; > } > > protected String getEntryPointName() { >- return "hello"; //$NON-NLS-1$ >+ return template.getFullApplicationId(); > } > > protected String getServletName() { >Index: src/org/eclipse/rap/internal/ui/templates/rap/MailRAPTemplate.java >=================================================================== >RCS file: /cvsroot/rt/org.eclipse.rap/tooling/org.eclipse.rap.ui.templates/src/org/eclipse/rap/internal/ui/templates/rap/MailRAPTemplate.java,v >retrieving revision 1.5 >diff -u -r1.5 MailRAPTemplate.java >--- src/org/eclipse/rap/internal/ui/templates/rap/MailRAPTemplate.java 6 Jan 2011 16:46:36 -0000 1.5 >+++ src/org/eclipse/rap/internal/ui/templates/rap/MailRAPTemplate.java 13 Jan 2011 14:09:09 -0000 >@@ -41,10 +41,14 @@ > }; > } > >+ public String getApplicationId() { >+ return "mailapp"; >+ } >+ > protected void updateModel( final IProgressMonitor monitor ) > throws CoreException > { >- createEntryPointsExtension(); >+ createApplicationExtension(); > createPerspectivesExtension(); > createViewsExtension(); > createCommandsExtension(); >@@ -53,6 +57,7 @@ > > // helping methods > // //////////////// >+ > private void createCommandsExtension() throws CoreException { > IPluginExtension extension = createExtension( XmlNames.XID_COMMANDS, true ); > IPluginElement element = createElement( extension ); >@@ -91,24 +96,26 @@ > extension.add( element ); > } > >- private void createEntryPointsExtension() throws CoreException { >- IPluginExtension extension = createExtension( XmlNames.XID_ENTRYPOINT, >+ private void createApplicationExtension() throws CoreException { >+ IPluginExtension extension = createExtension( XmlNames.XID_APPLICATION, > true ); >- IPluginElement element = createElement( extension ); >- element.setName( XmlNames.ELEM_ENTRYPOINT ); >- element.setAttribute( XmlNames.ATT_CLASS, >- getEntrypointId() ); //$NON-NLS-1$ >- element.setAttribute( XmlNames.ATT_ID, >- getEntrypointId() ); //$NON-NLS-1$ >- element.setAttribute( XmlNames.ATT_PARAMETER, "mail" ); //$NON-NLS-1$ >- extension.add( element ); >+ extension.setId( getApplicationId() ); >+ IPluginElement applicationElement = createElement( extension ); >+ applicationElement.setName( XmlNames.ELEM_APPLICATION ); >+ applicationElement.setAttribute( XmlNames.ATT_VISIBLE, >+ "true" ); //$NON-NLS-1$ >+ applicationElement.setAttribute( XmlNames.ATT_CARDINALITY, >+ "singleton-global" ); //$NON-NLS-1$ >+ applicationElement.setAttribute( XmlNames.ATT_THREAD, >+ "main" ); //$NON-NLS-1$ >+ extension.add( applicationElement ); >+ IPluginElement runElement = createElement( extension ); >+ runElement.setName( XmlNames.ELEM_RUN ); //$NON-NLS-1$ >+ runElement.setAttribute( XmlNames.ATT_CLASS, getApplicationClass() ); //$NON-NLS-1$ >+ applicationElement.add( runElement ); > addExtensionToPlugin( extension ); > } >- >- private String getEntrypointId() { >- return getPackageName() + "." + getApplicationName(); >- } >- >+ > private void createPerspectivesExtension() throws CoreException { > IPluginExtension extension = createExtension( XmlNames.XID_PERSPECTIVES, > true ); >@@ -159,7 +166,7 @@ > brandingElement.setAttribute( XmlNames.ATT_ID, brandingId ); > brandingElement.setAttribute( XmlNames.ATT_SERVLET, "mail" ); > brandingElement.setAttribute( XmlNames.ATT_DEFAULT_ENTRYPOINT, >- getEntrypointId() ); >+ getFullApplicationId() ); > brandingElement.setAttribute( XmlNames.ATT_THEME_ID, > TemplateUtil.BUSINESS_THEME_ID ); > brandingElement.setAttribute( XmlNames.ATT_TITLE, "RAP Maildemo" ); >Index: src/org/eclipse/rap/internal/ui/templates/rap/MailRAPWizard.java >=================================================================== >RCS file: /cvsroot/rt/org.eclipse.rap/tooling/org.eclipse.rap.ui.templates/src/org/eclipse/rap/internal/ui/templates/rap/MailRAPWizard.java,v >retrieving revision 1.3 >diff -u -r1.3 MailRAPWizard.java >--- src/org/eclipse/rap/internal/ui/templates/rap/MailRAPWizard.java 16 Mar 2010 10:29:19 -0000 1.3 >+++ src/org/eclipse/rap/internal/ui/templates/rap/MailRAPWizard.java 13 Jan 2011 14:09:09 -0000 >@@ -12,19 +12,22 @@ > > public class MailRAPWizard extends AbstractRAPWizard { > >+ private AbstractRAPTemplate template; >+ > public void init( final IFieldData data ) { > super.init( data ); > setWindowTitle( Messages.mailRAPWizard_windowTitle ); > } > > public ITemplateSection[] createTemplateSections() { >+ template = new MailRAPTemplate(); > return new ITemplateSection[] { >- new MailRAPTemplate() >+ template > }; > } > > protected String getEntryPointName() { >- return "mail"; //$NON-NLS-1$ >+ return template.getFullApplicationId(); > } > > protected String getServletName() { >Index: src/org/eclipse/rap/internal/ui/templates/rap/ViewRAPTemplate.java >=================================================================== >RCS file: /cvsroot/rt/org.eclipse.rap/tooling/org.eclipse.rap.ui.templates/src/org/eclipse/rap/internal/ui/templates/rap/ViewRAPTemplate.java,v >retrieving revision 1.4 >diff -u -r1.4 ViewRAPTemplate.java >--- src/org/eclipse/rap/internal/ui/templates/rap/ViewRAPTemplate.java 6 Jan 2011 16:46:36 -0000 1.4 >+++ src/org/eclipse/rap/internal/ui/templates/rap/ViewRAPTemplate.java 13 Jan 2011 14:09:09 -0000 >@@ -34,11 +34,15 @@ > public String getSectionId() { > return "viewRAP"; //$NON-NLS-1$ > } >+ >+ public String getApplicationId() { >+ return "viewapp"; >+ } > > protected void updateModel( final IProgressMonitor monitor ) > throws CoreException > { >- createEntryPointsExtension(); >+ createApplicationExtension(); > createPerspectivesExtension(); > createViewsExtension(); > createBrandingExtension(); >@@ -46,24 +50,27 @@ > > // helping methods > // //////////////// >- private void createEntryPointsExtension() throws CoreException { >- IPluginExtension extension = createExtension( XmlNames.XID_ENTRYPOINT, >+ >+ private void createApplicationExtension() throws CoreException { >+ IPluginExtension extension = createExtension( XmlNames.XID_APPLICATION, > true ); >- IPluginElement element = createElement( extension ); >- element.setName( XmlNames.ELEM_ENTRYPOINT ); >- element.setAttribute( XmlNames.ATT_CLASS, >- getEntrypointId() ); //$NON-NLS-1$ >- element.setAttribute( XmlNames.ATT_ID, >- getEntrypointId() ); //$NON-NLS-1$ >- element.setAttribute( XmlNames.ATT_PARAMETER, "view" ); //$NON-NLS-1$ >- extension.add( element ); >+ extension.setId( getApplicationId() ); >+ IPluginElement applicationElement = createElement( extension ); >+ applicationElement.setName( XmlNames.ELEM_APPLICATION ); >+ applicationElement.setAttribute( XmlNames.ATT_VISIBLE, >+ "true" ); //$NON-NLS-1$ >+ applicationElement.setAttribute( XmlNames.ATT_CARDINALITY, >+ "singleton-global" ); //$NON-NLS-1$ >+ applicationElement.setAttribute( XmlNames.ATT_THREAD, >+ "main" ); //$NON-NLS-1$ >+ extension.add( applicationElement ); >+ IPluginElement runElement = createElement( extension ); >+ runElement.setName( XmlNames.ELEM_RUN ); //$NON-NLS-1$ >+ runElement.setAttribute( XmlNames.ATT_CLASS, getApplicationClass() ); //$NON-NLS-1$ >+ applicationElement.add( runElement ); > addExtensionToPlugin( extension ); > } > >- private String getEntrypointId() { >- return getPackageName() + "." + getApplicationName(); >- } >- > private void createPerspectivesExtension() throws CoreException { > IPluginExtension extension = createExtension( XmlNames.XID_PERSPECTIVES, > true ); >@@ -99,7 +106,7 @@ > brandingElement.setAttribute( XmlNames.ATT_ID, brandingId ); > brandingElement.setAttribute( XmlNames.ATT_SERVLET, "view" ); > brandingElement.setAttribute( XmlNames.ATT_DEFAULT_ENTRYPOINT, >- getEntrypointId() ); >+ getFullApplicationId() ); > brandingElement.setAttribute( XmlNames.ATT_THEME_ID, > TemplateUtil.FANCY_THEME_ID ); > brandingElement.setAttribute( XmlNames.ATT_TITLE, "RAP Single View" ); >Index: src/org/eclipse/rap/internal/ui/templates/rap/ViewRAPWizard.java >=================================================================== >RCS file: /cvsroot/rt/org.eclipse.rap/tooling/org.eclipse.rap.ui.templates/src/org/eclipse/rap/internal/ui/templates/rap/ViewRAPWizard.java,v >retrieving revision 1.3 >diff -u -r1.3 ViewRAPWizard.java >--- src/org/eclipse/rap/internal/ui/templates/rap/ViewRAPWizard.java 16 Mar 2010 10:29:19 -0000 1.3 >+++ src/org/eclipse/rap/internal/ui/templates/rap/ViewRAPWizard.java 13 Jan 2011 14:09:09 -0000 >@@ -12,19 +12,22 @@ > > public class ViewRAPWizard extends AbstractRAPWizard { > >+ private AbstractRAPTemplate template; >+ > public void init( final IFieldData data ) { > super.init( data ); > setWindowTitle( Messages.viewRAPWizard_windowTitle ); > } > > public ITemplateSection[] createTemplateSections() { >+ template = new ViewRAPTemplate(); > return new ITemplateSection[] { >- new ViewRAPTemplate() >+ template > }; > } > > protected String getEntryPointName() { >- return "view"; //$NON-NLS-1$ >+ return template.getFullApplicationId(); > } > > protected String getServletName() { >Index: templates/helloRAP/java/$applicationClass$.java >=================================================================== >RCS file: /cvsroot/rt/org.eclipse.rap/tooling/org.eclipse.rap.ui.templates/templates/helloRAP/java/$applicationClass$.java,v >retrieving revision 1.1 >diff -u -r1.1 $applicationClass$.java >--- templates/helloRAP/java/$applicationClass$.java 12 Feb 2009 19:24:50 -0000 1.1 >+++ templates/helloRAP/java/$applicationClass$.java 13 Jan 2011 14:09:09 -0000 >@@ -1,6 +1,7 @@ > package $packageName$; > >-import org.eclipse.rwt.lifecycle.IEntryPoint; >+import org.eclipse.equinox.app.IApplication; >+import org.eclipse.equinox.app.IApplicationContext; > import org.eclipse.swt.widgets.Display; > import org.eclipse.ui.PlatformUI; > import org.eclipse.ui.application.WorkbenchAdvisor; >@@ -9,11 +10,15 @@ > * This class controls all aspects of the application's execution > * and is contributed through the plugin.xml. > */ >-public class $applicationClass$ implements IEntryPoint { >+public class $applicationClass$ implements IApplication { > >- public int createUI() { >- Display display = PlatformUI.createDisplay(); >- WorkbenchAdvisor advisor = new ApplicationWorkbenchAdvisor(); >- return PlatformUI.createAndRunWorkbench( display, advisor ); >- } >+ public Object start( final IApplicationContext context ) throws Exception { >+ Display display = PlatformUI.createDisplay(); >+ WorkbenchAdvisor advisor = new ApplicationWorkbenchAdvisor(); >+ return PlatformUI.createAndRunWorkbench( display, advisor ); >+ } >+ >+ public void stop() { >+ // Do nothing >+ } > } >Index: templates/helloRAP/java/ApplicationWorkbenchWindowAdvisor.java >=================================================================== >RCS file: /cvsroot/rt/org.eclipse.rap/tooling/org.eclipse.rap.ui.templates/templates/helloRAP/java/ApplicationWorkbenchWindowAdvisor.java,v >retrieving revision 1.1 >diff -u -r1.1 ApplicationWorkbenchWindowAdvisor.java >--- templates/helloRAP/java/ApplicationWorkbenchWindowAdvisor.java 12 Feb 2009 19:24:50 -0000 1.1 >+++ templates/helloRAP/java/ApplicationWorkbenchWindowAdvisor.java 13 Jan 2011 14:09:09 -0000 >@@ -1,6 +1,8 @@ > package $packageName$; > >+import org.eclipse.swt.SWT; > import org.eclipse.swt.graphics.Point; >+import org.eclipse.swt.widgets.Shell; > import org.eclipse.ui.application.ActionBarAdvisor; > import org.eclipse.ui.application.IActionBarConfigurer; > import org.eclipse.ui.application.IWorkbenchWindowConfigurer; >@@ -25,5 +27,6 @@ > configurer.setShowCoolBar(false); > configurer.setShowStatusLine(false); > configurer.setTitle("$windowTitle$"); >+ configurer.setShellStyle( SWT.TITLE | SWT.RESIZE ); > } > } >Index: templates/mailRAP/java/$applicationClass$.java >=================================================================== >RCS file: /cvsroot/rt/org.eclipse.rap/tooling/org.eclipse.rap.ui.templates/templates/mailRAP/java/$applicationClass$.java,v >retrieving revision 1.1 >diff -u -r1.1 $applicationClass$.java >--- templates/mailRAP/java/$applicationClass$.java 12 Feb 2009 19:24:49 -0000 1.1 >+++ templates/mailRAP/java/$applicationClass$.java 13 Jan 2011 14:09:09 -0000 >@@ -1,6 +1,7 @@ > package $packageName$; > >-import org.eclipse.rwt.lifecycle.IEntryPoint; >+import org.eclipse.equinox.app.IApplication; >+import org.eclipse.equinox.app.IApplicationContext; > import org.eclipse.swt.widgets.Display; > import org.eclipse.ui.PlatformUI; > import org.eclipse.ui.application.WorkbenchAdvisor; >@@ -9,11 +10,15 @@ > * This class controls all aspects of the application's execution > * and is contributed through the plugin.xml. > */ >-public class $applicationClass$ implements IEntryPoint { >+public class $applicationClass$ implements IApplication { > >- public int createUI() { >+ public Object start( final IApplicationContext context ) throws Exception { > Display display = PlatformUI.createDisplay(); > WorkbenchAdvisor advisor = new ApplicationWorkbenchAdvisor(); > return PlatformUI.createAndRunWorkbench( display, advisor ); > } >+ >+ public void stop() { >+ // Do nothing >+ } > } >Index: templates/viewRAP/java/$applicationClass$.java >=================================================================== >RCS file: /cvsroot/rt/org.eclipse.rap/tooling/org.eclipse.rap.ui.templates/templates/viewRAP/java/$applicationClass$.java,v >retrieving revision 1.1 >diff -u -r1.1 $applicationClass$.java >--- templates/viewRAP/java/$applicationClass$.java 12 Feb 2009 19:24:50 -0000 1.1 >+++ templates/viewRAP/java/$applicationClass$.java 13 Jan 2011 14:09:09 -0000 >@@ -1,6 +1,7 @@ > package $packageName$; > >-import org.eclipse.rwt.lifecycle.IEntryPoint; >+import org.eclipse.equinox.app.IApplication; >+import org.eclipse.equinox.app.IApplicationContext; > import org.eclipse.swt.widgets.Display; > import org.eclipse.ui.PlatformUI; > import org.eclipse.ui.application.WorkbenchAdvisor; >@@ -9,11 +10,15 @@ > * This class controls all aspects of the application's execution > * and is contributed through the plugin.xml. > */ >-public class $applicationClass$ implements IEntryPoint { >+public class $applicationClass$ implements IApplication { > >- public int createUI() { >+ public Object start( final IApplicationContext context ) throws Exception { > Display display = PlatformUI.createDisplay(); > WorkbenchAdvisor advisor = new ApplicationWorkbenchAdvisor(); > return PlatformUI.createAndRunWorkbench( display, advisor ); > } >-} >+ >+ public void stop() { >+ // Do nothing >+ } >+} >\ No newline at end of file >Index: templates/viewRAP/java/ApplicationWorkbenchWindowAdvisor.java >=================================================================== >RCS file: /cvsroot/rt/org.eclipse.rap/tooling/org.eclipse.rap.ui.templates/templates/viewRAP/java/ApplicationWorkbenchWindowAdvisor.java,v >retrieving revision 1.1 >diff -u -r1.1 ApplicationWorkbenchWindowAdvisor.java >--- templates/viewRAP/java/ApplicationWorkbenchWindowAdvisor.java 12 Feb 2009 19:24:50 -0000 1.1 >+++ templates/viewRAP/java/ApplicationWorkbenchWindowAdvisor.java 13 Jan 2011 14:09:09 -0000 >@@ -1,6 +1,8 @@ > package $packageName$; > >+import org.eclipse.swt.SWT; > import org.eclipse.swt.graphics.Point; >+import org.eclipse.swt.widgets.Shell; > import org.eclipse.ui.application.ActionBarAdvisor; > import org.eclipse.ui.application.IActionBarConfigurer; > import org.eclipse.ui.application.IWorkbenchWindowConfigurer; >@@ -25,5 +27,6 @@ > configurer.setShowCoolBar(false); > configurer.setShowStatusLine(false); > configurer.setTitle("$windowTitle$"); >+ configurer.setShellStyle( SWT.TITLE | SWT.RESIZE ); > } > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 305988
:
177609
|
178402
|
178413
| 186722