public void addDocumentSection(IDocumentSection docSection) { fDocSections.addElement(docSection); fireModelChanged(new ModelChangedEvent(this, IModelChangedEvent.INSERT, new Object[] { docSection }, null)); }
public void addElement(ISchemaElement element, ISchemaElement afterElement) { int index = -1; if (afterElement != null) { index = fElements.indexOf(afterElement); } if (index != -1) fElements.add(index + 1, element); else fElements.add(element); fireModelChanged(new ModelChangedEvent(this, IModelChangedEvent.INSERT, new Object[] { element }, null)); }
protected void fireStructureChanged(BundleObject[] children, int changeType) { IModelChangedEvent e = new ModelChangedEvent( model, changeType, children, null); fireModelChanged(e); }
public void fireModelObjectChanged(Object object, String property, Object oldValue, Object newValue) { fireModelChanged(new ModelChangedEvent(this, object, property, oldValue, newValue)); }
public void removeDocumentSection(IDocumentSection docSection) { fDocSections.removeElement(docSection); fireModelChanged(new ModelChangedEvent(this, IModelChangedEvent.REMOVE, new Object[] { docSection }, null)); }
protected void fireStructureChanged(BundleObject child, int changeType) { IModelChangedEvent e = new ModelChangedEvent( model, changeType, new Object[]{child}, null); fireModelChanged(e); }
public void remove(IBuildEntry entry) throws CoreException { if (fEntries.remove(entry.getName()) != null) fModel.fireModelChanged(new ModelChangedEvent(fModel, IModelChangedEvent.REMOVE, new Object[]{entry}, null)); } /*
protected void fireStructureChanged( IProductObject[] children, int changeType) { if (fModel.isEditable()) { IModelChangeProvider provider = fModel; provider.fireModelChanged(new ModelChangedEvent(provider, changeType, children, null)); } }
public void reload(InputStream source, boolean outOfSync) throws CoreException { load(source, outOfSync); fireModelChanged( new ModelChangedEvent(this, IModelChangedEvent.WORLD_CHANGED, new Object[] { fCompCS }, null)); }
public void reload(InputStream source, boolean outOfSync) throws CoreException { load(source, outOfSync); fireModelChanged( new ModelChangedEvent(this, IModelChangedEvent.WORLD_CHANGED, new Object[] { fTarget }, null)); }
public void reload(InputStream source, boolean outOfSync) throws CoreException { load(source, outOfSync); fireModelChanged(new ModelChangedEvent(this, IModelChangedEvent.WORLD_CHANGED, new Object[] { fCompCS }, null)); }
/** * @param children * @param changeType */ private void fireStructureChanged(ICompCSObject[] children, int changeType) { if (fModel.isEditable()) { IModelChangeProvider provider = fModel; provider.fireModelChanged(new ModelChangedEvent(provider, changeType, children, null)); } }
public void addToken(String token) throws CoreException { ensureModelEditable(); tokens.add(token); getModel().fireModelChanged( new ModelChangedEvent(getModel(), IModelChangedEvent.INSERT, new Object[]{token}, null)); } public String getName() {
public void removeToken(String token) throws CoreException { ensureModelEditable(); tokens.remove(token); getModel().fireModelChanged( new ModelChangedEvent(getModel(), IModelChangedEvent.REMOVE, new Object[]{token}, null)); } public void renameToken(String oldName, String newName)
protected void fireStructureChanged(IPluginObject child, int changeType) { IModel model = getModel(); if (model.isEditable() && model instanceof IModelChangeProvider) { IModelChangedEvent e = new ModelChangedEvent((IModelChangeProvider)model, changeType, new Object[] { child }, null); fireModelChanged(e); } } protected void fireStructureChanged(IPluginObject[] children, int changeType) {
protected void fireStructureChanged(IPluginObject[] children, int changeType) { IModel model = getModel(); if (model.isEditable() && model instanceof IModelChangeProvider) { IModelChangedEvent e = new ModelChangedEvent((IModelChangeProvider)model, changeType, children, null); fireModelChanged(e); } } protected void fireModelChanged(IModelChangedEvent e) {
protected void fireStructureChanged(IPluginObject child, int changeType) { IModel model = getModel(); if (model.isEditable() && model instanceof IModelChangeProvider) { IModelChangedEvent e = new ModelChangedEvent(fModel, changeType, new Object[] {child}, null); fireModelChanged(e); } }
protected void fireStructureChanged(IFeatureObject[] children, int changeType) { IFeatureModel model = getModel(); if (model.isEditable()) { IModelChangeProvider provider = model; provider.fireModelChanged(new ModelChangedEvent(provider, changeType, children, null)); } }
protected void fireStructureChanged(IPluginObject child, int changeType) { IModel model = getModel(); if (model.isEditable() && model instanceof IModelChangeProvider) { IModelChangedEvent e = new ModelChangedEvent((IModelChangeProvider) model, changeType, new Object[] {child}, null); fireModelChanged(e); } }
public void reload(InputStream is) { setNotificationEnabled(false); reset(); if (is != null) load(is); else load(); setNotificationEnabled(true); if (isLoaded()) fireModelChanged(new ModelChangedEvent(this, IModelChangedEvent.WORLD_CHANGED, new Object[0], null)); }