Package org.netbeans.modules.nodejs.registry

Examples of org.netbeans.modules.nodejs.registry.FileChangeRegistry$Event


    public boolean canCreate(ICreateContext context) {
      if (!super.canCreate(context)) {
        return false;
      }

      Event e = (Event) getBusinessObjectForPictogramElement(context.getTargetContainer());
      if (e instanceof ThrowEvent) {
        return false;
      }

      return true;
View Full Code Here


    public boolean canCreate(ICreateContext context) {
      if (!super.canCreate(context)) {
        return false;
      }

      Event e = (Event) getBusinessObjectForPictogramElement(context.getTargetContainer());

      return e instanceof EndEvent;
    }
View Full Code Here

    public boolean canCreate(ICreateContext context) {
      if (!super.canCreate(context)) {
        return false;
      }

      Event e = (Event) getBusinessObjectForPictogramElement(context.getTargetContainer());

      if (e instanceof BoundaryEvent) {
        BoundaryEvent be = (BoundaryEvent) e;
        return be.isCancelActivity();
      }
View Full Code Here

    public boolean canCreate(ICreateContext context) {
      if (!super.canCreate(context)) {
        return false;
      }

      Event e = (Event) getBusinessObjectForPictogramElement(context.getTargetContainer());

      if (e instanceof BoundaryEvent) {
        BoundaryEvent be = (BoundaryEvent) e;
        return be.isCancelActivity();
      }
View Full Code Here

    public boolean canCreate(ICreateContext context) {
      if (!super.canCreate(context)) {
        return false;
      }

      Event e = (Event) getBusinessObjectForPictogramElement(context.getTargetContainer());

      if (e instanceof BoundaryEvent) {
        BoundaryEvent be = (BoundaryEvent) e;
        return be.isCancelActivity();
      }
View Full Code Here

    public boolean canCreate(ICreateContext context) {
      if (!super.canCreate(context)) {
        return false;
      }

      Event e = (Event) getBusinessObjectForPictogramElement(context.getTargetContainer());

      if (e instanceof IntermediateCatchEvent || e instanceof IntermediateThrowEvent) {
        return true;
      }
View Full Code Here

    public boolean canCreate(ICreateContext context) {
      if (!super.canCreate(context)) {
        return false;
      }

      Event e = (Event) getBusinessObjectForPictogramElement(context.getTargetContainer());
      if (e instanceof ThrowEvent) {
        return false;
      }

      return true;
View Full Code Here

    @Override
    protected void addNotify () {
        active = true;
        if (!registered) {
            registered = true;
            FileChangeRegistry fileChangeRegistry = project.getLookup().lookup( FileChangeRegistry.class );
            System.out.println( "Register on " + fileChangeRegistry );
            if (fileChangeRegistry != null) {
                fileChangeRegistry.registerInterest( "", observer );
            }
        }
        registered = true;
        super.addNotify();
    }
View Full Code Here

        private final FileObject fo;
        private Node node;

        public Entry ( FileObject fo, NodeJSProject project ) {
            this.fo = fo;
            FileChangeRegistry reg = project.getLookup().lookup( FileChangeRegistry.class );
            reg.registerInterest( fo, this );
        }
View Full Code Here

        public void install () {
            installTask.schedule( 100 );
        }

        void init () {
            FileChangeRegistry reg = getLookup().lookup( FileChangeRegistry.class );
            reg.registerInterest( NodeJSProjectFactory.NODE_MODULES_FOLDER, this );
            ProjectMetadata md = getLookup().lookup( ProjectMetadata.class );
            md.addPropertyChangeListener( WeakListeners.propertyChange( this, md ));
        }
View Full Code Here

TOP

Related Classes of org.netbeans.modules.nodejs.registry.FileChangeRegistry$Event

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.