I hereby claim:
- I am vsavicks on github.
- I am vsavicks (https://keybase.io/vsavicks) on keybase.
- I have a public key ASDYUspqkuzkSlGS8fegUTJXYdYHiJ7fjICykOi8ikGqYQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
// show error markers if added | |
IResource resource = (IResource) diagramEditor.getEditorInput().getAdapter(IResource.class); | |
if (resource == null) | |
return null; | |
IMarker[] problems = null; | |
int depth = IResource.DEPTH_INFINITE; | |
try { | |
problems = resource.findMarkers(IMarker.PROBLEM, true, depth); | |
for (IMarker marker : problems) { | |
System.err.println(marker.getAttribute(IMarker.MESSAGE)); |
'Contains Shortcuts To' - Set of domain meta-model file extensions. Elements of the corresponding models could be shortcutted on this diagram. | |
'Shortcuts Provided For' - Set of domain meta-model names. Elements of this diagram domain model could be added as a shortcuts to the diagrams of the specified domains. |
Right click the element for which you wish to add the java doc, and add EAnnotation and set the Source to "http://www.eclipse.org/emf/2002/GenModel". Add a details entry to the EAnnotation and set the key to 'documentation' and value to the comment that you want to be generated. |
Dosgi.bundles=org.eclipse.core.runtime@start,org.eclipse.equinox.common@start |
PaletteRoot paletteRoot = ((DiagramEditor) diagramEditor).getDiagramGraphicalViewer().getEditDomain().getPaletteViewer().getPaletteRoot(); | |
for (Object e : paletteRoot.getChildren()) { | |
if (e instanceof PaletteToolbar) { | |
ToolEntry entry = new ToolEntry("Import", "Import a component", ComponentsDiagramEditorPlugin.findImageDescriptor("/ac.soton.fmusim.components/icons/Import.gif"), null) {}; | |
((DiagramEditor) diagramEditor).getDiagramGraphicalViewer().getEditDomain().getPaletteViewer().addPaletteListener(new PaletteListener(){ | |
@Override | |
public void activeToolChanged(PaletteViewer palette, | |
ToolEntry tool) { |