Examples of addListener()


Examples of org.eclipse.jface.preference.ColorSelector.addListener()

    editorChooser.addSelectionListener(new ChosenEditorListener(editorChooser, tokenList));
    filterField.addModifyListener(new FilterListener(tokenList));
   
    listener = (new SelectedTokenListener(tokenList, selector, fontStyle));
    tokenList.addSelectionListener(new SelectedTokenListener(tokenList, selector, fontStyle));   
    selector.addListener(new ColorChangeListener(selector, tokenList));
    fontStyle.addSelectionListener(new FontStyleChangeListener(fontStyle, tokenList));
   
    if(editorChooser.getItemCount()>0){
      editorChooser.select(0);
      generateListContent(tokenList);
View Full Code Here

Examples of org.eclipse.jface.resource.ColorRegistry.addListener()

        styledText.addMouseTrackListener(this);
        styledText.addListener(SWT.MouseUp, mouseUpListener);

        ColorRegistry colorRegistry = JFaceResources.getColorRegistry();
        propertyChangeListener = new HyperlinkColorChangeListener();
        colorRegistry.addListener(propertyChangeListener);

        revealJob.setSystem(true);
        document.addDocumentListener(documentListener);
        document.addPositionUpdater(positionUpdater);
    }
View Full Code Here

Examples of org.eclipse.jface.viewers.CellEditor.addListener()

                    }

                    return null;
                }
            });
            textEditor.addListener(new ICellEditorListener() {
                @Override
                public void editorValueChanged(boolean oldValidState, boolean newValidState) {
                    if (newValidState) {
                        validate();
                    } else {
View Full Code Here

Examples of org.eclipse.jface.viewers.IBaseLabelProvider.addListener()

    void addListener(ILabelProviderListener listener) {
        try {
            //Internal decorator might be null so be prepared
            IBaseLabelProvider currentDecorator = internalGetLabelProvider();
            if (currentDecorator != null) {
        currentDecorator.addListener(listener);
      }
        } catch (CoreException exception) {
            handleCoreException(exception);
        }
    }
View Full Code Here

Examples of org.eclipse.jface.viewers.ILabelDecorator.addListener()

    @Override
    public void addListener(final ILabelProviderListener listener) {
        if (fLabelDecorators != null) {
            for (int i = 0; i < fLabelDecorators.size(); i++) {
                final ILabelDecorator decorator = fLabelDecorators.get(i);
                decorator.addListener(listener);
            }
        }
        fListeners.add(listener);
    }
View Full Code Here

Examples of org.eclipse.jface.viewers.TextCellEditor.addListener()

                    }

                    return null;
                }
            });
            textEditor.addListener(new ICellEditorListener() {
                @Override
                public void editorValueChanged(boolean oldValidState, boolean newValidState) {
                    if (newValidState) {
                        validate();
                    } else {
View Full Code Here

Examples of org.eclipse.jst.jsf.common.internal.resource.LifecycleListener.addListener()

                if (bundleFileCache == null)
                {
                    bundleFileCache = new HashMap<String, BundleFileCacheInfo>();
                    final LifecycleListener listener = new LifecycleListener(project, ResourcesPlugin.getWorkspace());
                    listener.addListener(new IResourceLifecycleListener()
                    {
                        public EventResult acceptEvent(final ResourceLifecycleEvent event)
                        {
                            EventResult result = EventResult.getDefaultEventResult();
View Full Code Here

Examples of org.eclipse.jst.jsf.common.webxml.WebXmlUpdater.addListener()

// Following 3 lines disabled for https://bugs.eclipse.org/bugs/show_bug.cgi?id=317865        
//        updater.addServlet("faces", "org.apache.myfaces.webapp.MyFacesServlet", "1"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
//        updater.addServletMapping("faces", "org.apache.myfaces.webapp.MyFacesServlet", "*.jsf");  //$NON-NLS-1$//$NON-NLS-2$ //$NON-NLS-3$
//        updater.addServletMapping("faces", "org.apache.myfaces.webapp.MyFacesServlet", "*.faces");  //$NON-NLS-1$//$NON-NLS-2$ //$NON-NLS-3$
       
        updater.addListener("org.apache.myfaces.webapp.StartupServletContextListener"); //$NON-NLS-1$
       
//        // Additional, more complex updates
//        if (updater.isJavaEEWebapp())
//        {
//            updater.getProvider().modify(new UpdateWebXmlForMyfacesJavaEE(project, monitor), WebXmlUtils.WEB_XML_PATH);
View Full Code Here

Examples of org.eclipse.jst.jsf.designtime.internal.view.DTUIViewRoot.addListener()

                        }
                       
                        // do adds first, let remove trump all
                        for (final StalenessListener addListener : _waitingToAdd)
                        {
                            viewRoot.addListener(addListener);
                        }
                       
                        for (final StalenessListener removeListener : _waitingToRemove)
                        {
                            viewRoot.removeListener(removeListener);
View Full Code Here

Examples of org.eclipse.jst.jsf.designtime.internal.view.model.ITagRegistry.addListener()

  private ITagRegistry getTagRegistry(final TagRegistryIdentifier regId) {
    ITagRegistry reg = null;
    if (regId.getProject() != null) {
      reg = CompositeTagRegistryFactory.getInstance().getRegistry(regId);
      if (reg != null) {
        reg.addListener(this);
      }
    }
    return reg;
  }
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.