diff options
author | Lars Vogel | 2014-02-05 11:29:00 +0000 |
---|---|---|
committer | Lars Vogel | 2014-02-05 11:30:35 +0000 |
commit | 33c5a59acf43f62b80b397e25a748473635c592e (patch) | |
tree | ed061cc1bc636359a697a67692a8bd5fd46a037f | |
parent | a7d9274a7dca254b2c52bedd2ee7f95e9c3e7429 (diff) | |
download | org.eclipse.e4.tools-33c5a59acf43f62b80b397e25a748473635c592e.tar.gz org.eclipse.e4.tools-33c5a59acf43f62b80b397e25a748473635c592e.tar.xz org.eclipse.e4.tools-33c5a59acf43f62b80b397e25a748473635c592e.zip |
Bug 426343 - Activate more save actions for org.eclipse.e4.tools
projects
Change-Id: I9c64d02bf0850346de3beae1fcb7fe0d6233eb44
Signed-off-by: Lars Vogel <Lars.Vogel@gmail.com>
5 files changed, 64 insertions, 6 deletions
diff --git a/bundles/org.eclipse.e4.tools.css.spy/.settings/org.eclipse.jdt.ui.prefs b/bundles/org.eclipse.e4.tools.css.spy/.settings/org.eclipse.jdt.ui.prefs new file mode 100644 index 00000000..1de18b45 --- /dev/null +++ b/bundles/org.eclipse.e4.tools.css.spy/.settings/org.eclipse.jdt.ui.prefs @@ -0,0 +1,54 @@ +eclipse.preferences.version=1 +editor_save_participant_org.eclipse.jdt.ui.postsavelistener.cleanup=true +sp_cleanup.add_default_serial_version_id=true +sp_cleanup.add_generated_serial_version_id=false +sp_cleanup.add_missing_annotations=true +sp_cleanup.add_missing_deprecated_annotations=true +sp_cleanup.add_missing_methods=false +sp_cleanup.add_missing_nls_tags=false +sp_cleanup.add_missing_override_annotations=true +sp_cleanup.add_missing_override_annotations_interface_methods=true +sp_cleanup.add_serial_version_id=false +sp_cleanup.always_use_blocks=true +sp_cleanup.always_use_parentheses_in_expressions=false +sp_cleanup.always_use_this_for_non_static_field_access=false +sp_cleanup.always_use_this_for_non_static_method_access=false +sp_cleanup.convert_to_enhanced_for_loop=true +sp_cleanup.correct_indentation=false +sp_cleanup.format_source_code=true +sp_cleanup.format_source_code_changes_only=true +sp_cleanup.make_local_variable_final=true +sp_cleanup.make_parameters_final=false +sp_cleanup.make_private_fields_final=true +sp_cleanup.make_type_abstract_if_missing_method=false +sp_cleanup.make_variable_declarations_final=false +sp_cleanup.never_use_blocks=false +sp_cleanup.never_use_parentheses_in_expressions=true +sp_cleanup.on_save_use_additional_actions=true +sp_cleanup.organize_imports=true +sp_cleanup.qualify_static_field_accesses_with_declaring_class=false +sp_cleanup.qualify_static_member_accesses_through_instances_with_declaring_class=true +sp_cleanup.qualify_static_member_accesses_through_subtypes_with_declaring_class=true +sp_cleanup.qualify_static_member_accesses_with_declaring_class=false +sp_cleanup.qualify_static_method_accesses_with_declaring_class=false +sp_cleanup.remove_private_constructors=true +sp_cleanup.remove_trailing_whitespaces=true +sp_cleanup.remove_trailing_whitespaces_all=true +sp_cleanup.remove_trailing_whitespaces_ignore_empty=false +sp_cleanup.remove_unnecessary_casts=true +sp_cleanup.remove_unnecessary_nls_tags=false +sp_cleanup.remove_unused_imports=false +sp_cleanup.remove_unused_local_variables=false +sp_cleanup.remove_unused_private_fields=true +sp_cleanup.remove_unused_private_members=false +sp_cleanup.remove_unused_private_methods=true +sp_cleanup.remove_unused_private_types=true +sp_cleanup.sort_members=false +sp_cleanup.sort_members_all=false +sp_cleanup.use_blocks=true +sp_cleanup.use_blocks_only_for_return_and_throw=false +sp_cleanup.use_parentheses_in_expressions=false +sp_cleanup.use_this_for_non_static_field_access=false +sp_cleanup.use_this_for_non_static_field_access_only_if_necessary=true +sp_cleanup.use_this_for_non_static_method_access=false +sp_cleanup.use_this_for_non_static_method_access_only_if_necessary=true diff --git a/bundles/org.eclipse.e4.tools.css.spy/src/org/eclipse/e4/tools/css/spy/CSSScratchPadWindow.java b/bundles/org.eclipse.e4.tools.css.spy/src/org/eclipse/e4/tools/css/spy/CSSScratchPadWindow.java index 810a9660..d32157c8 100644 --- a/bundles/org.eclipse.e4.tools.css.spy/src/org/eclipse/e4/tools/css/spy/CSSScratchPadWindow.java +++ b/bundles/org.eclipse.e4.tools.css.spy/src/org/eclipse/e4/tools/css/spy/CSSScratchPadWindow.java @@ -37,6 +37,7 @@ public class CSSScratchPadWindow extends Dialog { // | getDefaultOrientation()); } + @Override protected void configureShell(Shell newShell) { super.configureShell(newShell); newShell.setText("CSS Scratchpad"); diff --git a/bundles/org.eclipse.e4.tools.css.spy/src/org/eclipse/e4/tools/css/spy/CssSpyDialog.java b/bundles/org.eclipse.e4.tools.css.spy/src/org/eclipse/e4/tools/css/spy/CssSpyDialog.java index f22e3808..17b3464f 100644 --- a/bundles/org.eclipse.e4.tools.css.spy/src/org/eclipse/e4/tools/css/spy/CssSpyDialog.java +++ b/bundles/org.eclipse.e4.tools.css.spy/src/org/eclipse/e4/tools/css/spy/CssSpyDialog.java @@ -154,7 +154,7 @@ public class CssSpyDialog extends Dialog { /** * Create the dialog. - * + * * @param parentShell */ public CssSpyDialog(Shell parentShell) { @@ -163,6 +163,7 @@ public class CssSpyDialog extends Dialog { setShellStyle(SWT.DIALOG_TRIM | SWT.RESIZE | SWT.MAX); } + @Override protected void configureShell(Shell newShell) { super.configureShell(newShell); newShell.setText("CSS Spy"); @@ -405,14 +406,14 @@ public class CssSpyDialog extends Dialog { CTabItem item = (CTabItem) widget; Rectangle bounds = item.getBounds(); return item.getDisplay().map(item.getParent(), null, bounds); - } + } // FIXME: figure out how to map items to a position return null; } /** * Create contents of the dialog. - * + * * @param parent */ @Override @@ -699,6 +700,7 @@ public class CssSpyDialog extends Dialog { }); } container.addKeyListener(new KeyAdapter() { + @Override public void keyPressed(KeyEvent e) { if (e.character == SWT.ESC) { cancelPressed(); @@ -708,6 +710,7 @@ public class CssSpyDialog extends Dialog { } }); showAllShells.addSelectionListener(new SelectionAdapter() { + @Override public void widgetSelected(SelectionEvent e) { updateWidgetTreeInput(); } @@ -814,7 +817,7 @@ public class CssSpyDialog extends Dialog { /** * Create contents of the button bar. - * + * * @param parent */ @Override diff --git a/bundles/org.eclipse.e4.tools.css.spy/src/org/eclipse/e4/tools/css/spy/OpenSpyHandler.java b/bundles/org.eclipse.e4.tools.css.spy/src/org/eclipse/e4/tools/css/spy/OpenSpyHandler.java index 7fdfba76..96b73496 100644 --- a/bundles/org.eclipse.e4.tools.css.spy/src/org/eclipse/e4/tools/css/spy/OpenSpyHandler.java +++ b/bundles/org.eclipse.e4.tools.css.spy/src/org/eclipse/e4/tools/css/spy/OpenSpyHandler.java @@ -35,7 +35,7 @@ public class OpenSpyHandler { @Execute public void openSpy() { Control control = display.getCursorControl(); - // it may be that only the shell was selected + // it may be that only the shell was selected if (control == null) { control = display.getActiveShell(); } diff --git a/bundles/org.eclipse.e4.tools.css.spy/src/org/eclipse/e4/tools/css/spy/SpyInstaller.java b/bundles/org.eclipse.e4.tools.css.spy/src/org/eclipse/e4/tools/css/spy/SpyInstaller.java index 99ac910b..acebc545 100644 --- a/bundles/org.eclipse.e4.tools.css.spy/src/org/eclipse/e4/tools/css/spy/SpyInstaller.java +++ b/bundles/org.eclipse.e4.tools.css.spy/src/org/eclipse/e4/tools/css/spy/SpyInstaller.java @@ -42,7 +42,7 @@ public class SpyInstaller { @Inject protected MApplication app; - + @Inject @Optional protected Logger logger; |