diff options
author | Eike Stepper | 2016-10-18 15:30:55 +0000 |
---|---|---|
committer | Eike Stepper | 2016-10-18 15:30:55 +0000 |
commit | d271b313d58d5eef02ed687c151a42dfd0c0f0ed (patch) | |
tree | 57ca0c57f33f0780f6092613bab565d35f7986af /plugins/org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.emf.ui | |
parent | 6809f0af826be94b174d4e1a45d75e686813d267 (diff) | |
download | cdo-d271b313d58d5eef02ed687c151a42dfd0c0f0ed.tar.gz cdo-d271b313d58d5eef02ed687c151a42dfd0c0f0ed.tar.xz cdo-d271b313d58d5eef02ed687c151a42dfd0c0f0ed.zip |
[Releng] Increase max line length to 160
Diffstat (limited to 'plugins/org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.emf.ui')
6 files changed, 39 insertions, 63 deletions
diff --git a/plugins/org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.emf.ui/.settings/org.eclipse.jdt.core.prefs b/plugins/org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.emf.ui/.settings/org.eclipse.jdt.core.prefs index 355502f2b1..2c5bb44754 100644 --- a/plugins/org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.emf.ui/.settings/org.eclipse.jdt.core.prefs +++ b/plugins/org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.emf.ui/.settings/org.eclipse.jdt.core.prefs @@ -367,7 +367,7 @@ org.eclipse.jdt.core.formatter.keep_else_statement_on_same_line=false org.eclipse.jdt.core.formatter.keep_empty_array_initializer_on_one_line=false org.eclipse.jdt.core.formatter.keep_imple_if_on_one_line=false org.eclipse.jdt.core.formatter.keep_then_statement_on_same_line=false -org.eclipse.jdt.core.formatter.lineSplit=120 +org.eclipse.jdt.core.formatter.lineSplit=160 org.eclipse.jdt.core.formatter.never_indent_block_comments_on_first_column=false org.eclipse.jdt.core.formatter.never_indent_line_comments_on_first_column=false org.eclipse.jdt.core.formatter.number_of_blank_lines_at_beginning_of_method_body=0 diff --git a/plugins/org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.emf.ui/META-INF/MANIFEST.MF b/plugins/org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.emf.ui/META-INF/MANIFEST.MF index 493a279543..3a7343ebdf 100644 --- a/plugins/org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.emf.ui/META-INF/MANIFEST.MF +++ b/plugins/org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.emf.ui/META-INF/MANIFEST.MF @@ -2,15 +2,15 @@ Manifest-Version: 1.0 Bundle-ManifestVersion: 2 Bundle-Name: %pluginName Bundle-SymbolicName: org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.emf.ui;singleton:=true -Bundle-Version: 1.0.400.qualifier +Bundle-Version: 1.0.500.qualifier Bundle-ClassPath: . Bundle-Activator: org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.emf.dawnEmfGenmodel.presentation.DawnGenModelEditorPlugin$Implementation Bundle-Vendor: %providerName Bundle-Localization: plugin Bundle-RequiredExecutionEnvironment: J2SE-1.5 Export-Package: org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.emf.dawnEmfGenmodel.presentation;version="1.0.0", - org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.emf.ui.actions;version="1.0.400", - org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.emf.ui.creators;version="1.0.400" + org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.emf.ui.actions;version="1.0.500", + org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.emf.ui.creators;version="1.0.500" Require-Bundle: org.eclipse.core.runtime;bundle-version="[3.5.0,4.0.0)", org.eclipse.core.resources;bundle-version="[3.4.0,4.0.0)";visibility:=reexport, org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.emf.edit;bundle-version="[1.0.0,2.0.0)";visibility:=reexport, diff --git a/plugins/org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.emf.ui/src-gen/org/eclipse/emf/cdo/dawn/codegen/dawngenmodel/emf/dawnEmfGenmodel/presentation/DawnEmfGenmodelActionBarContributor.java b/plugins/org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.emf.ui/src-gen/org/eclipse/emf/cdo/dawn/codegen/dawngenmodel/emf/dawnEmfGenmodel/presentation/DawnEmfGenmodelActionBarContributor.java index 26dfa76ee2..bf1e946a0a 100644 --- a/plugins/org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.emf.ui/src-gen/org/eclipse/emf/cdo/dawn/codegen/dawngenmodel/emf/dawnEmfGenmodel/presentation/DawnEmfGenmodelActionBarContributor.java +++ b/plugins/org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.emf.ui/src-gen/org/eclipse/emf/cdo/dawn/codegen/dawngenmodel/emf/dawnEmfGenmodel/presentation/DawnEmfGenmodelActionBarContributor.java @@ -50,8 +50,7 @@ import java.util.Collection; * @generated * @author Martin Fluegge */ -public class DawnEmfGenmodelActionBarContributor extends EditingDomainActionBarContributor - implements ISelectionChangedListener +public class DawnEmfGenmodelActionBarContributor extends EditingDomainActionBarContributor implements ISelectionChangedListener { /** * This keeps track of the active editor. <!-- begin-user-doc --> <!-- end-user-doc --> @@ -72,8 +71,7 @@ public class DawnEmfGenmodelActionBarContributor extends EditingDomainActionBarC * * @generated */ - protected IAction showPropertiesViewAction = new Action( - DawnGenModelEditorPlugin.INSTANCE.getString("_UI_ShowPropertiesView_menu_item")) + protected IAction showPropertiesViewAction = new Action(DawnGenModelEditorPlugin.INSTANCE.getString("_UI_ShowPropertiesView_menu_item")) { @Override public void run() @@ -95,8 +93,7 @@ public class DawnEmfGenmodelActionBarContributor extends EditingDomainActionBarC * * @generated */ - protected IAction refreshViewerAction = new Action( - DawnGenModelEditorPlugin.INSTANCE.getString("_UI_RefreshViewer_menu_item")) + protected IAction refreshViewerAction = new Action(DawnGenModelEditorPlugin.INSTANCE.getString("_UI_RefreshViewer_menu_item")) { @Override public boolean isEnabled() @@ -186,8 +183,7 @@ public class DawnEmfGenmodelActionBarContributor extends EditingDomainActionBarC { super.contributeToMenu(menuManager); - IMenuManager submenuManager = new MenuManager( - DawnGenModelEditorPlugin.INSTANCE.getString("_UI_DawnEmfGenmodelEditor_menu"), + IMenuManager submenuManager = new MenuManager(DawnGenModelEditorPlugin.INSTANCE.getString("_UI_DawnEmfGenmodelEditor_menu"), "org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.emf.dawnEmfGenmodelMenuID"); menuManager.insertAfter("additions", submenuManager); submenuManager.add(new Separator("settings")); @@ -202,8 +198,7 @@ public class DawnEmfGenmodelActionBarContributor extends EditingDomainActionBarC // Prepare for CreateSibling item addition or removal. // - createSiblingMenuManager = new MenuManager( - DawnGenModelEditorPlugin.INSTANCE.getString("_UI_CreateSibling_menu_item")); + createSiblingMenuManager = new MenuManager(DawnGenModelEditorPlugin.INSTANCE.getString("_UI_CreateSibling_menu_item")); submenuManager.insertBefore("additions", createSiblingMenuManager); // Force an update because Eclipse hides empty menus now. @@ -356,8 +351,7 @@ public class DawnEmfGenmodelActionBarContributor extends EditingDomainActionBarC * * @generated */ - protected void populateManager(IContributionManager manager, Collection<? extends IAction> actions, - String contributionID) + protected void populateManager(IContributionManager manager, Collection<? extends IAction> actions, String contributionID) { if (actions != null) { diff --git a/plugins/org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.emf.ui/src-gen/org/eclipse/emf/cdo/dawn/codegen/dawngenmodel/emf/dawnEmfGenmodel/presentation/DawnEmfGenmodelEditor.java b/plugins/org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.emf.ui/src-gen/org/eclipse/emf/cdo/dawn/codegen/dawngenmodel/emf/dawnEmfGenmodel/presentation/DawnEmfGenmodelEditor.java index 68c7e25a34..b1993a9ceb 100644 --- a/plugins/org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.emf.ui/src-gen/org/eclipse/emf/cdo/dawn/codegen/dawngenmodel/emf/dawnEmfGenmodel/presentation/DawnEmfGenmodelEditor.java +++ b/plugins/org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.emf.ui/src-gen/org/eclipse/emf/cdo/dawn/codegen/dawngenmodel/emf/dawnEmfGenmodel/presentation/DawnEmfGenmodelEditor.java @@ -396,11 +396,9 @@ public class DawnEmfGenmodelEditor extends MultiPageEditorPart { if (delta.getResource().getType() == IResource.FILE) { - if (delta.getKind() == IResourceDelta.REMOVED - || delta.getKind() == IResourceDelta.CHANGED && delta.getFlags() != IResourceDelta.MARKERS) + if (delta.getKind() == IResourceDelta.REMOVED || delta.getKind() == IResourceDelta.CHANGED && delta.getFlags() != IResourceDelta.MARKERS) { - Resource resource = resourceSet - .getResource(URI.createPlatformResourceURI(delta.getFullPath().toString(), true), false); + Resource resource = resourceSet.getResource(URI.createPlatformResourceURI(delta.getFullPath().toString(), true), false); if (resource != null) { if (delta.getKind() == IResourceDelta.REMOVED) @@ -564,8 +562,7 @@ public class DawnEmfGenmodelEditor extends MultiPageEditorPart { if (updateProblemIndication) { - BasicDiagnostic diagnostic = new BasicDiagnostic(Diagnostic.OK, - "org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.emf.ui", 0, null, + BasicDiagnostic diagnostic = new BasicDiagnostic(Diagnostic.OK, "org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.emf.ui", 0, null, new Object[] { editingDomain.getResourceSet() }); for (Diagnostic childDiagnostic : resourceToDiagnosticMap.values()) { @@ -627,8 +624,7 @@ public class DawnEmfGenmodelEditor extends MultiPageEditorPart */ protected boolean handleDirtyConflict() { - return MessageDialog.openQuestion(getSite().getShell(), getString("_UI_FileConflict_label"), - getString("_WARN_FileConflict")); + return MessageDialog.openQuestion(getSite().getShell(), getString("_UI_FileConflict_label"), getString("_WARN_FileConflict")); } /** @@ -938,10 +934,8 @@ public class DawnEmfGenmodelEditor extends MultiPageEditorPart { if (!resource.getErrors().isEmpty() || !resource.getWarnings().isEmpty()) { - BasicDiagnostic basicDiagnostic = new BasicDiagnostic(Diagnostic.ERROR, - "org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.emf.ui", 0, - getString("_UI_CreateModelError_message", resource.getURI()), - new Object[] { exception == null ? (Object)resource : exception }); + BasicDiagnostic basicDiagnostic = new BasicDiagnostic(Diagnostic.ERROR, "org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.emf.ui", 0, + getString("_UI_CreateModelError_message", resource.getURI()), new Object[] { exception == null ? (Object)resource : exception }); basicDiagnostic.merge(EcoreUtil.computeDiagnostic(resource, true)); return basicDiagnostic; } @@ -1144,14 +1138,12 @@ public class DawnEmfGenmodelEditor extends MultiPageEditorPart { // Select the root object in the view. // - contentOutlineViewer - .setSelection(new StructuredSelection(editingDomain.getResourceSet().getResources().get(0)), true); + contentOutlineViewer.setSelection(new StructuredSelection(editingDomain.getResourceSet().getResources().get(0)), true); } } @Override - public void makeContributions(IMenuManager menuManager, IToolBarManager toolBarManager, - IStatusLineManager statusLineManager) + public void makeContributions(IMenuManager menuManager, IToolBarManager toolBarManager, IStatusLineManager statusLineManager) { super.makeContributions(menuManager, toolBarManager, statusLineManager); contentOutlineStatusLineManager = statusLineManager; @@ -1285,8 +1277,7 @@ public class DawnEmfGenmodelEditor extends MultiPageEditorPart boolean first = true; for (Resource resource : editingDomain.getResourceSet().getResources()) { - if ((first || !resource.getContents().isEmpty() || isPersisted(resource)) - && !editingDomain.isReadOnly(resource)) + if ((first || !resource.getContents().isEmpty() || isPersisted(resource)) && !editingDomain.isReadOnly(resource)) { try { @@ -1397,8 +1388,8 @@ public class DawnEmfGenmodelEditor extends MultiPageEditorPart editingDomain.getResourceSet().getResources().get(0).setURI(uri); setInputWithNotify(editorInput); setPartName(editorInput.getName()); - IProgressMonitor progressMonitor = getActionBars().getStatusLineManager() != null - ? getActionBars().getStatusLineManager().getProgressMonitor() : new NullProgressMonitor(); + IProgressMonitor progressMonitor = getActionBars().getStatusLineManager() != null ? getActionBars().getStatusLineManager().getProgressMonitor() + : new NullProgressMonitor(); doSave(progressMonitor); } @@ -1513,8 +1504,8 @@ public class DawnEmfGenmodelEditor extends MultiPageEditorPart */ public void setStatusLineManager(ISelection selection) { - IStatusLineManager statusLineManager = currentViewer != null && currentViewer == contentOutlineViewer - ? contentOutlineStatusLineManager : getActionBars().getStatusLineManager(); + IStatusLineManager statusLineManager = currentViewer != null && currentViewer == contentOutlineViewer ? contentOutlineStatusLineManager + : getActionBars().getStatusLineManager(); if (statusLineManager != null) { diff --git a/plugins/org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.emf.ui/src-gen/org/eclipse/emf/cdo/dawn/codegen/dawngenmodel/emf/dawnEmfGenmodel/presentation/DawnEmfGenmodelModelWizard.java b/plugins/org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.emf.ui/src-gen/org/eclipse/emf/cdo/dawn/codegen/dawngenmodel/emf/dawnEmfGenmodel/presentation/DawnEmfGenmodelModelWizard.java index b9f6a90958..28c2e94189 100644 --- a/plugins/org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.emf.ui/src-gen/org/eclipse/emf/cdo/dawn/codegen/dawngenmodel/emf/dawnEmfGenmodel/presentation/DawnEmfGenmodelModelWizard.java +++ b/plugins/org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.emf.ui/src-gen/org/eclipse/emf/cdo/dawn/codegen/dawngenmodel/emf/dawnEmfGenmodel/presentation/DawnEmfGenmodelModelWizard.java @@ -81,16 +81,16 @@ public class DawnEmfGenmodelModelWizard extends Wizard implements INewWizard * * @generated */ - public static final List<String> FILE_EXTENSIONS = Collections.unmodifiableList(Arrays.asList( - DawnGenModelEditorPlugin.INSTANCE.getString("_UI_DawnEmfGenmodelEditorFilenameExtensions").split("\\s*,\\s*"))); + public static final List<String> FILE_EXTENSIONS = Collections + .unmodifiableList(Arrays.asList(DawnGenModelEditorPlugin.INSTANCE.getString("_UI_DawnEmfGenmodelEditorFilenameExtensions").split("\\s*,\\s*"))); /** * A formatted list of supported file extensions, suitable for display. <!-- begin-user-doc --> <!-- end-user-doc --> * * @generated */ - public static final String FORMATTED_FILE_EXTENSIONS = DawnGenModelEditorPlugin.INSTANCE - .getString("_UI_DawnEmfGenmodelEditorFilenameExtensions").replaceAll("\\s*,\\s*", ", "); + public static final String FORMATTED_FILE_EXTENSIONS = DawnGenModelEditorPlugin.INSTANCE.getString("_UI_DawnEmfGenmodelEditorFilenameExtensions") + .replaceAll("\\s*,\\s*", ", "); /** * This caches an instance of the model package. <!-- begin-user-doc --> <!-- end-user-doc --> @@ -152,8 +152,8 @@ public class DawnEmfGenmodelModelWizard extends Wizard implements INewWizard this.workbench = workbench; this.selection = selection; setWindowTitle(DawnGenModelEditorPlugin.INSTANCE.getString("_UI_Wizard_label")); - setDefaultPageImageDescriptor(ExtendedImageRegistry.INSTANCE - .getImageDescriptor(DawnGenModelEditorPlugin.INSTANCE.getImage("full/wizban/NewDawnEmfGenmodel"))); + setDefaultPageImageDescriptor( + ExtendedImageRegistry.INSTANCE.getImageDescriptor(DawnGenModelEditorPlugin.INSTANCE.getImage("full/wizban/NewDawnEmfGenmodel"))); } /** @@ -278,13 +278,11 @@ public class DawnEmfGenmodelModelWizard extends Wizard implements INewWizard // try { - page.openEditor(new FileEditorInput(modelFile), - workbench.getEditorRegistry().getDefaultEditor(modelFile.getFullPath().toString()).getId()); + page.openEditor(new FileEditorInput(modelFile), workbench.getEditorRegistry().getDefaultEditor(modelFile.getFullPath().toString()).getId()); } catch (PartInitException exception) { - MessageDialog.openError(workbenchWindow.getShell(), - DawnGenModelEditorPlugin.INSTANCE.getString("_UI_OpenEditorError_label"), exception.getMessage()); + MessageDialog.openError(workbenchWindow.getShell(), DawnGenModelEditorPlugin.INSTANCE.getString("_UI_OpenEditorError_label"), exception.getMessage()); return false; } @@ -564,8 +562,8 @@ public class DawnEmfGenmodelModelWizard extends Wizard implements INewWizard if (encodings == null) { encodings = new ArrayList<String>(); - for (StringTokenizer stringTokenizer = new StringTokenizer( - DawnGenModelEditorPlugin.INSTANCE.getString("_UI_XMLEncodingChoices")); stringTokenizer.hasMoreTokens();) + for (StringTokenizer stringTokenizer = new StringTokenizer(DawnGenModelEditorPlugin.INSTANCE.getString("_UI_XMLEncodingChoices")); stringTokenizer + .hasMoreTokens();) { encodings.add(stringTokenizer.nextToken()); } @@ -586,11 +584,8 @@ public class DawnEmfGenmodelModelWizard extends Wizard implements INewWizard // newFileCreationPage = new DawnEmfGenmodelModelWizardNewFileCreationPage("Whatever", selection); newFileCreationPage.setTitle(DawnGenModelEditorPlugin.INSTANCE.getString("_UI_DawnEmfGenmodelModelWizard_label")); - newFileCreationPage - .setDescription(DawnGenModelEditorPlugin.INSTANCE.getString("_UI_DawnEmfGenmodelModelWizard_description")); - newFileCreationPage - .setFileName(DawnGenModelEditorPlugin.INSTANCE.getString("_UI_DawnEmfGenmodelEditorFilenameDefaultBase") + "." - + FILE_EXTENSIONS.get(0)); + newFileCreationPage.setDescription(DawnGenModelEditorPlugin.INSTANCE.getString("_UI_DawnEmfGenmodelModelWizard_description")); + newFileCreationPage.setFileName(DawnGenModelEditorPlugin.INSTANCE.getString("_UI_DawnEmfGenmodelEditorFilenameDefaultBase") + "." + FILE_EXTENSIONS.get(0)); addPage(newFileCreationPage); // Try and get the resource selection to determine a current directory for the file dialog. @@ -620,8 +615,7 @@ public class DawnEmfGenmodelModelWizard extends Wizard implements INewWizard // Make up a unique new name here. // - String defaultModelBaseFilename = DawnGenModelEditorPlugin.INSTANCE - .getString("_UI_DawnEmfGenmodelEditorFilenameDefaultBase"); + String defaultModelBaseFilename = DawnGenModelEditorPlugin.INSTANCE.getString("_UI_DawnEmfGenmodelEditorFilenameDefaultBase"); String defaultModelFilenameExtension = FILE_EXTENSIONS.get(0); String modelFilename = defaultModelBaseFilename + "." + defaultModelFilenameExtension; for (int i = 1; ((IContainer)selectedResource).findMember(modelFilename) != null; ++i) @@ -633,10 +627,8 @@ public class DawnEmfGenmodelModelWizard extends Wizard implements INewWizard } } initialObjectCreationPage = new DawnEmfGenmodelModelWizardInitialObjectCreationPage("Whatever2"); - initialObjectCreationPage - .setTitle(DawnGenModelEditorPlugin.INSTANCE.getString("_UI_DawnEmfGenmodelModelWizard_label")); - initialObjectCreationPage - .setDescription(DawnGenModelEditorPlugin.INSTANCE.getString("_UI_Wizard_initial_object_description")); + initialObjectCreationPage.setTitle(DawnGenModelEditorPlugin.INSTANCE.getString("_UI_DawnEmfGenmodelModelWizard_label")); + initialObjectCreationPage.setDescription(DawnGenModelEditorPlugin.INSTANCE.getString("_UI_Wizard_initial_object_description")); addPage(initialObjectCreationPage); } diff --git a/plugins/org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.emf.ui/src/org/eclipse/emf/cdo/dawn/codegen/dawngenmodel/emf/ui/actions/GenerateEMFFragmentAction.java b/plugins/org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.emf.ui/src/org/eclipse/emf/cdo/dawn/codegen/dawngenmodel/emf/ui/actions/GenerateEMFFragmentAction.java index 8f36aa3d18..e9d16b5e05 100644 --- a/plugins/org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.emf.ui/src/org/eclipse/emf/cdo/dawn/codegen/dawngenmodel/emf/ui/actions/GenerateEMFFragmentAction.java +++ b/plugins/org.eclipse.emf.cdo.dawn.codegen.dawngenmodel.emf.ui/src/org/eclipse/emf/cdo/dawn/codegen/dawngenmodel/emf/ui/actions/GenerateEMFFragmentAction.java @@ -56,8 +56,7 @@ public class GenerateEMFFragmentAction implements IObjectActionDelegate for (Creator creator : creators) { - IProgressMonitor monitor2 = new org.eclipse.core.runtime.SubProgressMonitor(monitor, - 1000 / creators.size()); + IProgressMonitor monitor2 = new org.eclipse.core.runtime.SubProgressMonitor(monitor, 1000 / creators.size()); creator.create(monitor2); monitor2.done(); } |