public void modelResourceDeleted(IStructuredModel model) { Debug.println("modelResourceDeleted: " + model); //$NON-NLS-1$ }
/** * Gets the resourceLocation. * * @return Returns a String */ private String getResourceLocation() { String location = resourceLocation; if (location == null) { if (uriresolver != null) location = uriresolver.getFileBaseLocation(); } return location; }
/** * If this style sheet comes from an <code>@import</code> rule, the <code>ownerRule</code> attribute will * contain the <code>CSSImportRule</code>. In that case, the * <code>ownerNode</code> attribute in the * <code>StyleSheet</code> interface will be <code>null</code>. * If the style sheet comes from an element or a processing * instruction, the <code>ownerRule</code> attribute will be * <code>null</code> and the <code>ownerNode</code> attribute * will contain the <code>Node</code>. */ public CSSRule getOwnerRule() { Assert.isTrue(false, CSSCoreMessages.You_cannot_use_CSSStyleShe_UI_); //$NON-NLS-1$ = "You cannot use CSSStyleSheet.getOwnerRule() because of many referencers of this rule\nPlease use getOnwerRules()" // for @import return null; }
private IContentDescription getContentDescription(IDocument doc) { if (doc == null) return null; DocumentInputStream in = new DocumentInputStream(doc); return getContentDescription(in); }
public void modelDirtyStateChanged(IStructuredModel model, boolean isDirty) { Debug.println("modelDirtyStateChanged: " + model); //$NON-NLS-1$ }
private IContentDescription getContentDescription(IDocument doc) { if (doc == null) return null; DocumentInputStream in = new DocumentInputStream(doc); return getContentDescription(in); }
public void modelAboutToBeReinitialized(IStructuredModel structuredModel) { Debug.println("modelAboutToBeReinitialized: " + "structuredModel: " + structuredModel); //$NON-NLS-1$ //$NON-NLS-2$ }
public void modelReinitialized(IStructuredModel structuredModel) { Debug.println("modelReinitialized: " + "structuredModel: " + structuredModel); //$NON-NLS-1$ //$NON-NLS-2$ }
public void newModel(NewDocumentEvent structuredDocumentEvent) { Debug.println("structuredDocumentChanged - newModel: " + structuredDocumentEvent); //$NON-NLS-1$ }
public void regionsReplaced(RegionsReplacedEvent structuredDocumentEvent) { Debug.println("structuredDocumentChanged - regionsReplaced: " + structuredDocumentEvent); //$NON-NLS-1$ }
public void modelAboutToBeChanged(IStructuredModel model) { Debug.println("modelAboutToBeChanged: " + model); //$NON-NLS-1$ }
public void modelChanged(IStructuredModel model) { Debug.println("modelChanged: " + model); //$NON-NLS-1$ }
public void modelResourceMoved(IStructuredModel oldModel, IStructuredModel newModel) { Debug.println("modelResourceMoved: " + "oldModel: " + oldModel + "newModel: " + newModel); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ }
public void nodesReplaced(StructuredDocumentRegionsReplacedEvent structuredDocumentEvent) { Debug.println("structuredDocumentChanged - nodesReplaced: " + structuredDocumentEvent); //$NON-NLS-1$ }
public void regionChanged(RegionChangedEvent structuredDocumentEvent) { Debug.println("structuredDocumentChanged - regionChanged: " + structuredDocumentEvent); //$NON-NLS-1$ }
public void documentAboutToBeChanged(DocumentEvent event) { Debug.println("IdocumentAboutToBeChanged: " + event); //$NON-NLS-1$ }
public void documentChanged(DocumentEvent event) { Debug.println("IdocumentChanged: " + event); //$NON-NLS-1$ }
public void modelAboutToBeChanged(AboutToBeChangedEvent structuredDocumentEvent) { Debug.println("structuredDocumentAboutToBeChanged: " + structuredDocumentEvent); //$NON-NLS-1$ }
public void noChange(NoChangeEvent structuredDocumentEvent) { Debug.println("structuredDocumentChanged - noChange: " + structuredDocumentEvent); //$NON-NLS-1$ }
public void notifyChanged(INodeNotifier notifier, int eventType, Object changedFeature, Object oldValue, Object newValue, int pos) { if (notifier instanceof IDOMNode) { setModel(((IDOMNode) notifier).getModel()); } Debug.println("notifier: " + notifier + " " + INodeNotifier.EVENT_TYPE_STRINGS[eventType] + " changedFeature: " + changedFeature + " oldValue: " + oldValue + " newValue: " + newValue + " pos: " + pos); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ //$NON-NLS-5$ //$NON-NLS-6$ }