summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteffen Kriese2011-05-11 04:45:36 (EDT)
committerSteffen Kriese2011-05-11 04:45:36 (EDT)
commite8e271fe9176fc8b419989c8323b04c7cc90d0d1 (patch)
tree2c7b44b1ce107db2356b2a4b94f1533662b447c4
parentc927f589030943ea6f28c370ff0aa632ee630e8b (diff)
downloadorg.eclipse.riena.toolbox-e8e271fe9176fc8b419989c8323b04c7cc90d0d1.zip
org.eclipse.riena.toolbox-e8e271fe9176fc8b419989c8323b04c7cc90d0d1.tar.gz
org.eclipse.riena.toolbox-e8e271fe9176fc8b419989c8323b04c7cc90d0d1.tar.bz2
removed warnings in toolbox
-rw-r--r--org.eclipse.riena.toolbox/src/org/eclipse/riena/toolbox/assemblyeditor/CodeGenerator.java4
-rw-r--r--org.eclipse.riena.toolbox/src/org/eclipse/riena/toolbox/assemblyeditor/WorkbenchService.java1
-rw-r--r--org.eclipse.riena.toolbox/src/org/eclipse/riena/toolbox/assemblyeditor/ui/handler/GenerateConfigureRidgetsHandler.java4
-rw-r--r--org.eclipse.riena.toolbox/src/org/eclipse/riena/toolbox/assemblyeditor/ui/views/AssemblyView.java9
4 files changed, 11 insertions, 7 deletions
diff --git a/org.eclipse.riena.toolbox/src/org/eclipse/riena/toolbox/assemblyeditor/CodeGenerator.java b/org.eclipse.riena.toolbox/src/org/eclipse/riena/toolbox/assemblyeditor/CodeGenerator.java
index ee02bd8..6821804 100644
--- a/org.eclipse.riena.toolbox/src/org/eclipse/riena/toolbox/assemblyeditor/CodeGenerator.java
+++ b/org.eclipse.riena.toolbox/src/org/eclipse/riena/toolbox/assemblyeditor/CodeGenerator.java
@@ -45,11 +45,12 @@ import org.eclipse.riena.toolbox.assemblyeditor.model.RCPView;
import org.eclipse.riena.toolbox.assemblyeditor.model.SubModuleNode;
import org.eclipse.riena.toolbox.assemblyeditor.ui.preferences.PreferenceConstants;
+@SuppressWarnings("restriction")
public class CodeGenerator implements ICodeGenerator {
/**
*
*/
- private static final String CONST_CLASS_IDENT = "public class";
+ private static final String CONST_CLASS_IDENT = "public class"; //$NON-NLS-1$
private static final String EXTENSION_JAVA = ".java"; //$NON-NLS-1$
private static final String DIR_TEMPLATES = "templates"; //$NON-NLS-1$
private static final String PACKAGE_SEPARATOR = "."; //$NON-NLS-1$
@@ -211,7 +212,6 @@ public class CodeGenerator implements ICodeGenerator {
return fullClassName;
}
- @SuppressWarnings("restriction")
private void generateComments(final IFile classFile, final SubModuleNode subModule, final String fullClassName,
final StringWriter writer) {
final RidgetGenerator ridgetGenerator = new RidgetGenerator(subModule.getBundle().getProject());
diff --git a/org.eclipse.riena.toolbox/src/org/eclipse/riena/toolbox/assemblyeditor/WorkbenchService.java b/org.eclipse.riena.toolbox/src/org/eclipse/riena/toolbox/assemblyeditor/WorkbenchService.java
index 0cd3f0f..60f70df 100644
--- a/org.eclipse.riena.toolbox/src/org/eclipse/riena/toolbox/assemblyeditor/WorkbenchService.java
+++ b/org.eclipse.riena.toolbox/src/org/eclipse/riena/toolbox/assemblyeditor/WorkbenchService.java
@@ -24,6 +24,7 @@ import org.eclipse.riena.toolbox.assemblyeditor.model.BundleNode;
/**
*
*/
+@SuppressWarnings("restriction")
public class WorkbenchService implements IWorkbenchService {
public String getCompilationUnitClassNameOfActiveEditor(final IEditorPart part) {
diff --git a/org.eclipse.riena.toolbox/src/org/eclipse/riena/toolbox/assemblyeditor/ui/handler/GenerateConfigureRidgetsHandler.java b/org.eclipse.riena.toolbox/src/org/eclipse/riena/toolbox/assemblyeditor/ui/handler/GenerateConfigureRidgetsHandler.java
index 95ef930..4cbdefe 100644
--- a/org.eclipse.riena.toolbox/src/org/eclipse/riena/toolbox/assemblyeditor/ui/handler/GenerateConfigureRidgetsHandler.java
+++ b/org.eclipse.riena.toolbox/src/org/eclipse/riena/toolbox/assemblyeditor/ui/handler/GenerateConfigureRidgetsHandler.java
@@ -38,9 +38,9 @@ import org.eclipse.riena.toolbox.assemblyeditor.ui.views.AssemblyView;
*
* TODO: implement PropertyTester for this command
*/
+@SuppressWarnings("restriction")
public class GenerateConfigureRidgetsHandler extends AbstractHandler {
- @SuppressWarnings("restriction")
public Object execute(final ExecutionEvent event) throws ExecutionException {
final IEditorPart activeEditor = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage()
.getActiveEditor();
@@ -75,7 +75,7 @@ public class GenerateConfigureRidgetsHandler extends AbstractHandler {
if (Platform.inDebugMode()) {
for (final SwtControl control : controls) {
- System.out.println("DEBUG: found control: " + control.getSwtControlClassName() + " ridgetId: "
+ System.out.println("DEBUG: found control: " + control.getSwtControlClassName() + " ridgetId: " //$NON-NLS-1$ //$NON-NLS-2$
+ control.getRidgetId());
}
}
diff --git a/org.eclipse.riena.toolbox/src/org/eclipse/riena/toolbox/assemblyeditor/ui/views/AssemblyView.java b/org.eclipse.riena.toolbox/src/org/eclipse/riena/toolbox/assemblyeditor/ui/views/AssemblyView.java
index ad16607..ac98bb5 100644
--- a/org.eclipse.riena.toolbox/src/org/eclipse/riena/toolbox/assemblyeditor/ui/views/AssemblyView.java
+++ b/org.eclipse.riena.toolbox/src/org/eclipse/riena/toolbox/assemblyeditor/ui/views/AssemblyView.java
@@ -1050,8 +1050,10 @@ public class AssemblyView extends ViewPart implements ISaveablePart {
private class OnlyShowProjectsWithAssembliesAction extends Action {
public OnlyShowProjectsWithAssembliesAction() {
- super("Hide Projects without Assemblies", Action.AS_CHECK_BOX);
+ super("Hide Empty Projects", Action.AS_CHECK_BOX);
setId("org.eclipse.riena.toolbox.assemblyeditor.ui.views.OnlyShowProjectsWithAssemblies.action"); //$NON-NLS-1$
+ setChecked(Activator.getDefault().getPreferenceStore()
+ .getBoolean(PreferenceConstants.CONST_ONLY_SHOW_PROJECTS_WITH_ASSEMBLIES));
}
@Override
@@ -1064,15 +1066,16 @@ public class AssemblyView extends ViewPart implements ISaveablePart {
private class LinkWithEditorAction extends Action {
public LinkWithEditorAction() {
- super("Link with Editor", Action.AS_CHECK_BOX);
+ super("Link With Editor", Action.AS_CHECK_BOX);
setId("org.eclipse.riena.toolbox.assemblyeditor.ui.views.linkwitheditor.action"); //$NON-NLS-1$
+ setChecked(Activator.getDefault().getPreferenceStore()
+ .getBoolean(PreferenceConstants.CONST_LINK_WITH_EDITOR));
}
@Override
public void run() {
Activator.getDefault().getPreferenceStore()
.setValue(PreferenceConstants.CONST_LINK_WITH_EDITOR, isChecked());
- System.out.println("AssemblyView.LinkWithEditorAction.run() " + isChecked());
}
}
} \ No newline at end of file