public static synchronized ServerInstanceProviderLookup getInstance() { if (instance == null) { instance = new ServerInstanceProviderLookup(new InstanceContent()); } return instance; }
ProjectWebModule (WebProject project, UpdateHelper helper, ClassPathProviderImpl cpProvider) { this.project = project; this.helper = helper; this.cpProvider = cpProvider; myContent = new InstanceContent(); myLookup = new AbstractLookup( myContent ); //project.evaluator().addPropertyChangeListener(this); }
public RiskControlNode(RiskControl rs) throws IntrospectionException { super(rs, null//TODO Children.create(new SubProjectChildFactory(project), true), , new InstanceContent()); setIconBaseWithExtension("com/validation/manager/resources/icons/Papermart/Folder.png"); }
public ProjectNode(Project project, SubProjectChildFactory factory) throws IntrospectionException { super(project, factory, new InstanceContent()); this.factory = factory; setIconBaseWithExtension("com/validation/manager/resources/icons/Papermart/Folder.png"); }
public FieldDataObject(FileObject pf, MultiFileLoader loader) throws DataObjectExistsException, IOException { super(pf, loader); registerEditor(Field.MIMETYPE, true); this.ic = new InstanceContent(); this.intern = new AbstractLookup(this.ic); fieldManager = Lookup.getDefault().lookup(FieldManager.class); assert fieldManager != null : "No FieldManager class found in the default lookup, unable to load the DataObject"; }
public UITestProjectNode(TestProject tp) throws IntrospectionException { super(tp, new TestProjectChildFactory(tp), new InstanceContent()); setIconBaseWithExtension("com/validation/manager/resources/icons/Papermart/Folder.png"); }
private void createLoadingRoot() { InstanceContent ic = new InstanceContent(); addLookup(ic); projectRootNode = new MakeLogicalViewRootNode(null, this, ic); }
public TestPlanNode(TestPlan tp) throws IntrospectionException { super(tp, new TestPlanChildFactory(tp), new InstanceContent()); setIconBaseWithExtension("com/validation/manager/resources/icons/Papermart/Folder.png"); }
public TestNode(Test test) throws IntrospectionException { super(test, new TestChildFactory(test), new InstanceContent()); setIconBaseWithExtension("com/validation/manager/resources/icons/Papermart/Text-Edit.png"); }
public UIRequirementSpecNodeNode(RequirementSpecNode node) throws IntrospectionException { super(node, new RequirementChildFactory(node), new InstanceContent()); setIconBaseWithExtension("com/validation/manager/resources/icons/Papermart/Contacts-alt.png"); }
public TestCaseNode(TestCase tc) throws IntrospectionException { super(tc, new TestCaseChildFactory(tc), new InstanceContent()); setIconBaseWithExtension("com/validation/manager/resources/icons/Papermart/Notepad.png"); }
CodeClipNodeFactory(XMLDataObject obj) { xmlDataObject = obj; InstanceContent content = new InstanceContent(); content.add(Node.class, this); lookup = new AbstractLookup(content); }
public CropsStorageDataObject(FileObject pf, MultiFileLoader loader) throws DataObjectExistsException, IOException { super(pf, loader); registerEditor("application/x-agrosense-crop", true); this.ic = new InstanceContent(); this.intern = new AbstractLookup(this.ic); cropManager = Lookup.getDefault().lookup(CropManager.class); cropsStorage = cropManager.load(pf); attachListeners(cropsStorage); }
public AnimationDataObject(AnimationEditor controller, FileObject pf, MultiFileLoader loader) throws DataObjectExistsException, IOException { super(pf, loader); myController = controller; myInstance = new InstanceContent(); myLookup = new AbstractLookup(myInstance); myInstance.add(myController); setSaveCookie(); }
private void doFullRename(EditorCookie ec, Node n) { InstanceContent ic = new InstanceContent(); ic.add(ec); ic.add(n); Lookup actionContext = new AbstractLookup(ic); Action a = RefactoringActionsFactory.renameAction().createContextAwareInstance(actionContext); a.actionPerformed(RefactoringActionsFactory.DEFAULT_EVENT); } }
private void createRoot(MakeConfigurationDescriptor configurationDescriptor) { InstanceContent ic = new InstanceContent(); Folder logicalFolders = configurationDescriptor.getLogicalFolders(); ic.add(logicalFolders); addLookup(ic); projectRootNode = new MakeLogicalViewRootNode(logicalFolders, this, ic); }
public AnimationOverviewTopComponent() { initComponents(); myContent = new InstanceContent(); associateLookup(new AbstractLookup(myContent)); myPanel = new TimelineOverviewPanel(); setComponent(myPanel); setName(NbBundle.getMessage(AnimationOverviewTopComponent.class, "CTL_AnimationOverviewTopComponent")); setToolTipText(NbBundle.getMessage(AnimationOverviewTopComponent.class, "HINT_AnimationOverviewTopComponent")); // setIcon(ImageUtilities.loadImage(ICON_PATH, true)); }
public AnimationViewTopComponent() { initComponents(); myContent = new InstanceContent(); associateLookup(new AbstractLookup(myContent)); myTable = new AnimationTable(); myTable.hideHeader(); setComponent(myTable); setName(NbBundle.getMessage(AnimationViewTopComponent.class, "CTL_AnimationViewTopComponent")); setToolTipText(NbBundle.getMessage(AnimationViewTopComponent.class, "HINT_AnimationViewTopComponent")); // setIcon(ImageUtilities.loadImage(ICON_PATH, true)); }
public HistoryViewTopComponent() { initComponents(); myContent = new InstanceContent(); associateLookup(new AbstractLookup(myContent)); myTable = new HistoryTable(); myTable.hideHeader(); setComponent(myTable); setName(NbBundle.getMessage(HistoryViewTopComponent.class, "CTL_HistoryViewTopComponent")); setToolTipText(NbBundle.getMessage(HistoryViewTopComponent.class, "HINT_HistoryViewTopComponent")); // setIcon(ImageUtilities.loadImage(ICON_PATH, true)); }
public Collection<? extends Lookup> getLookups(DataObjectContext context, DataEditorView view) { PropertiesWindowManager.register(); if (view.getKind() == DataEditorView.Kind.MODEL) { InstanceContent ic = new InstanceContent(); ic.add(context.getDataObject().getLookup()); PropertiesSupport.addInstanceContent(view, ic); return Collections.singleton(new AbstractLookup(ic)); } return null; } }