Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSusan Franklin2009-03-16 14:52:04 -0400
committerSusan Franklin2009-03-16 14:52:04 -0400
commite2be79e71807bc0f7b9d26a87e3dcb1244014f5e (patch)
treea378546c040f698e7285a6761ea4e117e2a2f8e6
parent016af5c5fbd0e57c1423499e99d61c0347dd0445 (diff)
downloadrt.equinox.p2-e2be79e71807bc0f7b9d26a87e3dcb1244014f5e.tar.gz
rt.equinox.p2-e2be79e71807bc0f7b9d26a87e3dcb1244014f5e.tar.xz
rt.equinox.p2-e2be79e71807bc0f7b9d26a87e3dcb1244014f5e.zip
mark changes with XXX
-rw-r--r--examples/org.eclipse.equinox.p2.examples.rcp.cloud/src/org/eclipse/equinox/p2/examples/rcp/cloud/Activator.java5
-rw-r--r--examples/org.eclipse.equinox.p2.examples.rcp.cloud/src/org/eclipse/equinox/p2/examples/rcp/cloud/ApplicationActionBarAdvisor.java6
-rw-r--r--examples/org.eclipse.equinox.p2.examples.rcp.cloud/src/org/eclipse/equinox/p2/examples/rcp/cloud/ApplicationWorkbenchWindowAdvisor.java2
3 files changed, 9 insertions, 4 deletions
diff --git a/examples/org.eclipse.equinox.p2.examples.rcp.cloud/src/org/eclipse/equinox/p2/examples/rcp/cloud/Activator.java b/examples/org.eclipse.equinox.p2.examples.rcp.cloud/src/org/eclipse/equinox/p2/examples/rcp/cloud/Activator.java
index 84708ee1a..5d2735431 100644
--- a/examples/org.eclipse.equinox.p2.examples.rcp.cloud/src/org/eclipse/equinox/p2/examples/rcp/cloud/Activator.java
+++ b/examples/org.eclipse.equinox.p2.examples.rcp.cloud/src/org/eclipse/equinox/p2/examples/rcp/cloud/Activator.java
@@ -44,6 +44,7 @@ public class Activator extends AbstractUIPlugin {
public void start(BundleContext context) throws Exception {
super.start(context);
plugin = this;
+ /// XXX initialize the p2 UI policy
initializeP2Policies();
initializeP2Repositories();
}
@@ -79,13 +80,13 @@ public class Activator extends AbstractUIPlugin {
private void initializeP2Policies() {
Policy policy = Policy.getDefault();
- // Where a profile must be chosen, use the running profile
+ // XXX Where a profile must be chosen, use the running profile
policy.setProfileChooser(new IProfileChooser() {
public String getProfileId(Shell shell) {
return ProfileFactory.makeProfile("Canned").getProfileId();
}
});
- // User has no access to manipulate repositories
+ // XXX User has no access to manipulate repositories
policy.setRepositoryManipulator(null);
}
diff --git a/examples/org.eclipse.equinox.p2.examples.rcp.cloud/src/org/eclipse/equinox/p2/examples/rcp/cloud/ApplicationActionBarAdvisor.java b/examples/org.eclipse.equinox.p2.examples.rcp.cloud/src/org/eclipse/equinox/p2/examples/rcp/cloud/ApplicationActionBarAdvisor.java
index b705bf42d..91a0fdb00 100644
--- a/examples/org.eclipse.equinox.p2.examples.rcp.cloud/src/org/eclipse/equinox/p2/examples/rcp/cloud/ApplicationActionBarAdvisor.java
+++ b/examples/org.eclipse.equinox.p2.examples.rcp.cloud/src/org/eclipse/equinox/p2/examples/rcp/cloud/ApplicationActionBarAdvisor.java
@@ -30,6 +30,7 @@ public class ApplicationActionBarAdvisor extends ActionBarAdvisor {
private IWorkbenchAction exitAction;
private IWorkbenchAction aboutAction;
private IWorkbenchAction newWindowAction;
+ // XXX we want to show preferences
private IWorkbenchAction preferencesAction;
private OpenViewAction openViewAction;
private Action messagePopupAction;
@@ -54,6 +55,7 @@ public class ApplicationActionBarAdvisor extends ActionBarAdvisor {
aboutAction = ActionFactory.ABOUT.create(window);
register(aboutAction);
+ // XXX we want to show auto update preferences
preferencesAction = ActionFactory.PREFERENCES.create(window);
register(preferencesAction);
@@ -69,6 +71,7 @@ public class ApplicationActionBarAdvisor extends ActionBarAdvisor {
protected void fillMenuBar(IMenuManager menuBar) {
MenuManager fileMenu = new MenuManager("&File", IWorkbenchActionConstants.M_FILE);
+ // XXX add a tools menu
MenuManager toolsMenu = new MenuManager("&Tools", M_TOOLS);
MenuManager helpMenu = new MenuManager("&Help", IWorkbenchActionConstants.M_HELP);
@@ -86,10 +89,11 @@ public class ApplicationActionBarAdvisor extends ActionBarAdvisor {
fileMenu.add(new Separator());
fileMenu.add(exitAction);
- // Tools
+ // XXX add preferences to tools
toolsMenu.add(preferencesAction);
toolsMenu.add(new Separator());
toolsMenu.add(new GroupMarker(IWorkbenchActionConstants.MB_ADDITIONS));
+
// Help
helpMenu.add(aboutAction);
}
diff --git a/examples/org.eclipse.equinox.p2.examples.rcp.cloud/src/org/eclipse/equinox/p2/examples/rcp/cloud/ApplicationWorkbenchWindowAdvisor.java b/examples/org.eclipse.equinox.p2.examples.rcp.cloud/src/org/eclipse/equinox/p2/examples/rcp/cloud/ApplicationWorkbenchWindowAdvisor.java
index 9e806ba7f..a71e1b3f2 100644
--- a/examples/org.eclipse.equinox.p2.examples.rcp.cloud/src/org/eclipse/equinox/p2/examples/rcp/cloud/ApplicationWorkbenchWindowAdvisor.java
+++ b/examples/org.eclipse.equinox.p2.examples.rcp.cloud/src/org/eclipse/equinox/p2/examples/rcp/cloud/ApplicationWorkbenchWindowAdvisor.java
@@ -20,7 +20,7 @@ public class ApplicationWorkbenchWindowAdvisor extends WorkbenchWindowAdvisor {
IWorkbenchWindowConfigurer configurer = getWindowConfigurer();
configurer.setInitialSize(new Point(600, 400));
configurer.setShowCoolBar(true);
- // Set the status line and progress indicator so that update
+ // XXX Set the status line and progress indicator so that update
// information can be shown there
configurer.setShowStatusLine(true);
configurer.setShowProgressIndicator(true);

Back to the top