/** * This looks up a string in plugin.properties, making a substitution. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ private static String getString(String key, Object s1) { return GenModelEditPlugin.INSTANCE.getString(key, new Object [] { s1 }); }
public void init(IWorkbench workbench, IStructuredSelection selection) { this.workbench = workbench; setDefaultPageImageDescriptor(ExtendedImageRegistry.INSTANCE.getImageDescriptor(GenModelEditPlugin.INSTANCE.getImage("full/wizban/NewEmptyEMFProject"))); setWindowTitle(GenModelEditPlugin.INSTANCE.getString("_UI_NewEmptyProject_title")); }
public UnderlayedImage(Object imageDescriptor, Object multiplicity) { super (Arrays.asList (new Object[] { GenModelEditPlugin.INSTANCE.getImage("full/obj16/Underlay"), imageDescriptor, multiplicity })); }
@Override public void run() { try { getPage().showView("org.eclipse.ui.views.PropertySheet"); } catch (PartInitException exception) { GenModelEditPlugin.INSTANCE.log(exception); } } };
/** * This creates an instance of the contributor. */ public GenModelActionBarContributor() { super(ADDITIONS_LAST_STYLE); showGenAnnotationsAction.setChecked( Boolean.valueOf(GenModelEditPlugin.getPlugin().getDialogSettings().get("showGenAnnotationsAction")).booleanValue()); }
public UnderlayedImage(Object imageDescriptor) { super (Arrays.asList (new Object[] { GenModelEditPlugin.INSTANCE.getImage("full/obj16/Underlay"), imageDescriptor })); }
@Override public void mouseDoubleClick(MouseEvent event) { if (event.button == 1) { try { getEditorSite().getPage().showView("org.eclipse.ui.views.PropertySheet"); } catch (PartInitException exception) { GenModelEditPlugin.INSTANCE.log(exception); } } } });
@Override public void dispose() { GenModelEditPlugin.getPlugin().getDialogSettings().put( "showGenAnnotationsAction", Boolean.toString(showGenAnnotationsAction.isChecked())); showGenAnnotationsAction.dispose(); annotateAction.dispose(); addDetailAction.dispose(); openEcoreAction.dispose(); openGenModelAction.dispose(); super.dispose(); }
/** * This looks up a string in the plugin's plugin.properties file. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ private static String getString(String key) { return GenModelEditPlugin.INSTANCE.getString(key); }
/** * This returns the image that is used if the command does not provide an * override. */ @Override protected ImageDescriptor getDefaultImageDescriptor() { return ExtendedImageRegistry.INSTANCE.getImageDescriptor(GenModelEditPlugin.INSTANCE.getImage("CreateChild")); }
GenModelEditPlugin.INSTANCE.log(exception);
protected String getNoModelConverterMessage() { return GenModelEditPlugin.INSTANCE.getString("_UI_NoModelConverter_error"); }
protected Image getEPackageImage() { return ExtendedImageRegistry.INSTANCE.getImage(new GenBaseItemProvider.UnderlayedImage( GenModelEditPlugin.INSTANCE.getImage("full/obj16/EPackage"))); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated NOT */ public void gotoMarker(IMarker marker) { try { // TODO Hack that should be removed. if (marker.exists() && marker.getType().equals(EValidator.MARKER)) { String uriAttribute = marker.getAttribute(EValidator.URI_ATTRIBUTE, null); if (uriAttribute != null) { URI uri = URI.createURI(uriAttribute); EObject eObject = editingDomain.getResourceSet().getEObject(uri, true); if (eObject != null) { setSelectionToViewer(Collections.singleton(editingDomain.getWrapper(eObject))); } } } } catch (CoreException exception) { GenModelEditPlugin.INSTANCE.log(exception); } }
@Override public void addPages() { WizardNewProjectCreationPage newProjectCreationPage = new WizardNewProjectCreationPage("NewProjectCreationPage") { @Override protected boolean validatePage() { if (super.validatePage()) { IPath locationPath = getLocationPath(); genModelProjectLocation = Platform.getLocation().equals(locationPath) ? null : locationPath; IPath projectPath = getProjectHandle().getFullPath(); genModelContainerPath = projectPath.append("src"); return true; } else { return false; } } }; newProjectCreationPage.setInitialProjectName(initialProjectName); newProjectCreationPage.setTitle(GenModelEditPlugin.INSTANCE.getString("_UI_EmptyProject_title")); newProjectCreationPage.setDescription(GenModelEditPlugin.INSTANCE.getString("_UI_EmptyProject_description")); addPage(newProjectCreationPage); }
GenModelEditPlugin.INSTANCE.log(exception);
public void setOriginalGenModelFile(IFile originalGenModelFile) { this.originalGenModelFile = originalGenModelFile; if (originalGenModelFile != null) { setWindowTitle(ImporterPlugin.INSTANCE.getString("_UI_ReloadWizard_title")); try { getModelImporter().defineOriginalGenModelPath(originalGenModelFile.getFullPath()); } catch (DiagnosticException exception) { String message = getModelImporter().getOriginalGenModel() != null ? ImporterPlugin.INSTANCE.getString("_UI_ProblematicModel_message") : ImporterPlugin.INSTANCE.getString("_UI_InvalidModel_message"); Diagnostic diagnostic = exception.getDiagnostic(); DiagnosticDialog.open (getShell(), GenModelEditPlugin.INSTANCE.getString("_UI_ModelProblems_title"), message, diagnostic); } } }
GenModelEditPlugin.INSTANCE.log(exception); return false;
/** * This adds menu contributions for the generate actions. */ @Override public void contributeToMenu(IMenuManager menuManager) { super.contributeToMenu(menuManager); generateMenuManager = new MenuManager(GenModelEditPlugin.INSTANCE.getString("_UI_Generate_menu"), "org.eclipse.emf.codegen.ecore.genmodelMenuID"); menuManager.insertAfter("additions", generateMenuManager); generateMenuManager.add(generateModelAction); generateMenuManager.add(generateEditAction); generateMenuManager.add(generateEditorAction); generateMenuManager.add(generateTestsAction); generateMenuManager.add(generateAllAction); // generateMenuManager.add(new Separator("schema-actions")); // generateMenuManager.add(generateSchemaAction); generateMenuManager.add(new Separator("annotation-actions")); generateMenuManager.add(showGenAnnotationsAction); generateMenuManager.add(new Separator("annotation-actions")); generateMenuManager.add(new Separator("global-actions")); }
GenModelEditPlugin.INSTANCE.log(exception);