getCookieSet().add(instanceCookie);
/** Creates a new instance of TomcatInstanceNode @param lookup will contain DeploymentFactory, DeploymentManager, Management objects. */ public TomcatInstanceNode(Children children, Lookup lookup) { super(children); tm = (TomcatManager)lookup.lookup(TomcatManager.class); setIconBaseWithExtension("org/netbeans/modules/tomcat5/resources/tomcat.png"); // NOI18N getCookieSet().add(this); }
public QtTranslationDataObject(FileObject pf, MultiFileLoader loader) throws DataObjectExistsException { super(pf, loader); CookieSet cookies = getCookieSet(); cookies.add(new ExternalProgramOpenCookie( this, new String[]{"linguist"}, NbBundle.getMessage(QtTranslationDataObject.class, "MSG_OpenWithQtLinguistFailed"))); // NOI18N }
public static Lookup createPrintingLookup (final PrintCookie printCookie) { final Node node = new AbstractNode(Children.LEAF) {{ getCookieSet().add(printCookie); }}; return node.getLookup(); } }
private void init() { CookieSet cookies = getCookieSet(); cookies.add(JSFConfigEditorSupport.class, this); //Lookup JSFConfigEditorContext for Page Flow Editor multiview cookies.assign(JSFConfigEditorContext.class, new JSFConfigEditorContextImpl((JSFConfigDataObject)this)); // Creates Check XML and Validate XML context actions InputSource in = DataObjectAdapters.inputSource(this); cookies.add(new CheckXMLSupport(in)); cookies.add(new ValidateXMLSupport(in)); cookies.assign(FileEncodingQueryImplementation.class, XmlFileEncodingQueryImpl.singleton()); }
public RhtmlDataObject(FileObject pf, RhtmlDataLoader loader) throws DataObjectExistsException, IOException { super(pf, loader); CookieSet cookies = getCookieSet(); cookies.add((Node.Cookie) DataEditorSupport.create(this, getPrimaryEntry(), cookies)); //CookieSet set = getCookieSet(); //set.add(HtmlEditorSupport.class, this); //set.add(ViewSupport.class, this); }
/** Adds save cookie to the DO. */ final void addSaveCookie() { DataObject dataObj = getDataObject (); // add Save cookie to the data object if (dataObj instanceof MultiDataObject) { if (dataObj.getCookie(SaveCookie.class) == null) { getCookieSet((MultiDataObject)dataObj).add(this); } } }
protected MultiDataObject createMultiObject (final FileObject primaryFile) throws DataObjectExistsException, IOException { JspDataObject obj = createJspObject(primaryFile, this); // [PENDING] add these from JspDataObject, not from the loader obj.getCookieSet0 ().add (new TagLibParseSupport(primaryFile)); return obj; }
public TestNGSuiteDataObject(FileObject pf, MultiFileLoader loader) throws DataObjectExistsException, IOException { super(pf, loader); CookieSet cookies = getCookieSet(); cookies.add(new CheckXMLSupport(DataObjectAdapters.inputSource(this))); cookies.add(new ValidateXMLSupport(DataObjectAdapters.inputSource(this))); registerEditor(MIME_TYPE, true); }
/** Helper method. Adds save cookie to the data object. */ private void addSaveCookie() { DataObject obj = getDataObject(); // Adds save cookie to the data object. if(obj.getCookie(SaveCookie.class) == null) { set.add(saveCookie); obj.setModified(true); } }
public LanguagesDataObject(FileObject pf, LanguagesDataLoader loader) throws DataObjectExistsException, IOException { super(pf, loader); CookieSet cookies = getCookieSet(); cookies.add((Node.Cookie) DataEditorSupport.create(this, getPrimaryEntry(), cookies)); }
public void addSaveCookie() { GsfDataObject javaData = (GsfDataObject) this.getDataObject(); if (javaData.getCookie(SaveCookie.class) == null) { if (this.saveCookie == null) this.saveCookie = new SaveSupport(); javaData.getCookieSet().add(this.saveCookie); javaData.setModified(true); } }
/** Helper method. Adds save cookie to the data object. */ private void addSaveCookie() { TLDDataObject obj = (TLDDataObject)getDataObject(); // Adds save cookie to the data object. if(obj.getCookie(SaveCookie.class) == null) { obj.getCookieSet0().add(saveCookie); obj.setModified(true); } }
public void addSaveCookie() { J2MEDataObject javaData = (J2MEDataObject) this.getDataObject(); if (javaData.getCookie(SaveCookie.class) == null) { if (this.saveCookie == null) { this.saveCookie = new SaveSupport(); } javaData.getCookieSet().add(this.saveCookie); javaData.setModified(true); } }
public RailsAppNode(RailsApplication application) { super(Children.LEAF); this.application = application; this.actions = new Action[]{SystemAction.get(StopAction.class)}; setDisplayName(NbBundle.getMessage(RailsAppNode.class, "LBL_ApplicationNode", application.getName(), String.valueOf(application.getPort()))); setIconBaseWithExtension("org/netbeans/modules/ruby/railsprojects/ui/resources/rails.png"); //NOI18N getCookieSet().add(new RailsAppCookie(application)); }
public ManagerNode(DeploymentManager manager) { super(new MyChildren(bogusNodes)); sdm = (SunDeploymentManagerInterface)manager; this.manager = manager; setDisplayName(sdm.getHost()+":"+sdm.getPort()); setIconBaseWithExtension("org/netbeans/modules/j2ee/sun/ide/resources/ServerInstanceIcon.png");//NOI18N setShortDescription(NbBundle.getMessage(ManagerNode.class, "HINT_node", sdm.getHost()+":"+sdm.getPort())); //NOI18N getCookieSet().add(this); getCookieSet().add(sdm); }
public MEDesignDataObject (FileObject javaFile, FileObject designFile, MultiFileLoader loader) throws DataObjectExistsException { super (javaFile, loader); ((MEDesignDataLoader) loader).createSecondaryEntry (this, designFile); //this.javaFile = javaFile; //this.designFile = designFile; editorSupport = new MEDesignEditorSupport (this); CookieSet cookies = getCookieSet (); cookies.add (editorSupport); designFile.addFileChangeListener (WeakListeners.create (FileChangeListener.class, this, designFile)); // javaFile.addFileChangeListener (WeakListeners.create (FileChangeListener.class, this, javaFile)); // handled by the CloneableEditorSupport }
public InstanceNode(ServerInstance instance, boolean addStateListener) { super(new InstanceChildren(instance)); this.instance = instance; setIconBase(instance.getServer().getIconBase()); getCookieSet().add(instance); if (addStateListener) { instance.addStateListener(this); } }
/** Creates a new instance of TomcatWebModuleNode */ public TomcatWebModuleNode(TomcatWebModule module) { super(Children.LEAF); this.module = module; setDisplayName(constructName()); setShortDescription(module.getTomcatModule ().getWebURL()); getCookieSet().add(module); }
public TargetBaseNode(Children children, ServerTarget target) { super(children); setDisplayName(target.getName()); setIconBase(target.getInstance().getServer().getIconBase()); getCookieSet().add(target); }