Examples of IElementChangedListener


Examples of org.eclipse.jdt.core.IElementChangedListener

    {
        this.project = JavaCore.create( context( Element.class ).adapt( IProject.class ) );
       
        final Value<?> value = context( Value.class );
       
        this.listener = new IElementChangedListener()
        {
            public void elementChanged( final ElementChangedEvent event )
            {
                final IProject project = JdtJavaTypeReferenceService.this.project.getProject();
               
View Full Code Here

Examples of org.eclipse.jdt.core.IElementChangedListener

    }

    public static void fire(final ElementChangedEvent extraEvent) {
        for (int i = 0; i < elementChangedListenerCount; i++) {
            if ((elementChangedListenerMasks[i] & extraEvent.getType()) != 0) {
                final IElementChangedListener listener = elementChangedListeners[i];

                // wrap callbacks with Safe runnable for subsequent listeners to
                // be called when some are causing grief
                SafeRunner.run(new ISafeRunnable() {
                    public void handleException(Throwable exception) {
                    // Util.log(exception, "Exception occurred in listener
                    // of Java element change notification"); //$NON-NLS-1$
                    }

                    public void run() throws Exception {
                        listener.elementChanged(extraEvent);
                    }
                });

            }
        }
View Full Code Here

Examples of org.erlide.engine.model.IElementChangedListener

        final ElementChangedEvent extraEvent = new ElementChangedEvent(deltaToNotify,
                eventType);
        for (int i = 0; i < listenerCount; i++) {
            if (listenerMask == null || (listenerMask[i] & eventType) != 0) {
                final IElementChangedListener listener = listeners[i];
                long start = -1;
                if (ModelConfig.verbose) {
                    ErlLogger.debug("Listener #" + (i + 1) + "=" + listener.toString());//$NON-NLS-1$//$NON-NLS-2$
                    start = System.currentTimeMillis();
                }
                // wrap callbacks with Safe runnable for subsequent listeners to
                // be called
                // when some are causing grief
                SafeRunner.run(new ISafeRunnable() {

                    @Override
                    public void handleException(final Throwable exception) {
                        // CCorePlugin.log(exception, "Exception occurred in
                        // listener of C
                        // element change notification"); //$NON-NLS-1$
                        ErlLogger.error(exception);
                    }

                    @Override
                    public void run() throws Exception {
                        listener.elementChanged(extraEvent);
                    }
                });
                if (ModelConfig.verbose) {
                    ErlLogger.debug(" -> " + (System.currentTimeMillis() - start) + "ms"); //$NON-NLS-1$ //$NON-NLS-2$
                }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.