org.eclipse.ui.dialogs.PropertyPage Java Examples
The following examples show how to use
org.eclipse.ui.dialogs.PropertyPage.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: DataSourceEditor.java From birt with Eclipse Public License 1.0 | 6 votes |
public void updateMessage( ) { PropertyPage propertyPage = getCurrentPropertyPage( ); if ( propertyPage != null ) { String message = propertyPage.getMessage( ); int messageType = propertyPage.getMessageType( ); // if error message exists, it takes precedence over page's non-error message if ( messageType < IMessageProvider.ERROR ) { String errMessage = propertyPage.getErrorMessage(); if ( errMessage != null ) { message = errMessage; messageType = IMessageProvider.ERROR; } } setMessage( message, messageType ); } }
Example #2
Source File: DataSetEditor.java From birt with Eclipse Public License 1.0 | 5 votes |
/** * get current PropertyPage * * @return */ private PropertyPage getCurrentPropertyPage( ) { if ( getCurrentNode( ) != null ) { IPropertyPage ipropertyPage = getCurrentNode( ).getPage( ); if ( ipropertyPage instanceof PropertyPageWrapper ) return ( (PropertyPageWrapper) ipropertyPage ).getPropertyPage( ); } return null; }
Example #3
Source File: DataSetEditor.java From birt with Eclipse Public License 1.0 | 5 votes |
public void updateButtons( ) { if ( getOkButton( ) != null ) { PropertyPage propertyPage = this.getCurrentPropertyPage( ); if ( propertyPage != null ) { getOkButton( ).setEnabled( propertyPage.okToLeave( ) ); } else if ( getCurrentNode( ).getPage( ) instanceof WizardPage ) { getOkButton( ).setEnabled( ( (WizardPage) getCurrentNode( ).getPage( ) ).isPageComplete( ) ); } } }
Example #4
Source File: DataSetEditor.java From birt with Eclipse Public License 1.0 | 5 votes |
public void updateMessage( ) { PropertyPage propertyPage = getCurrentPropertyPage( ); if ( propertyPage != null ) setMessage( propertyPage.getMessage( ), propertyPage.getMessageType( ) ); }
Example #5
Source File: DataSourceEditor.java From birt with Eclipse Public License 1.0 | 5 votes |
public void updateButtons( ) { if ( getOkButton( ) != null ) { PropertyPage propertyPage = getCurrentPropertyPage( ); if ( propertyPage != null ) getOkButton( ).setEnabled( propertyPage.isValid( ) ); } }
Example #6
Source File: DataSourceEditor.java From birt with Eclipse Public License 1.0 | 5 votes |
/** * * @return */ private PropertyPage getCurrentPropertyPage( ) { if ( getCurrentNode( ) == null ) return null; IPropertyPage currentPage = getCurrentNode( ).getPage( ); if ( !( currentPage instanceof PropertyPageWrapper ) ) return null; return ( (PropertyPageWrapper) currentPage ).getPropertyPage( ); }
Example #7
Source File: AnnotationStyleViewPage.java From uima-uimaj with Apache License 2.0 | 5 votes |
@Override public void makeContributions(IMenuManager menuManager, IToolBarManager toolBarManager, IStatusLineManager statusLineManager) { super.makeContributions(menuManager, toolBarManager, statusLineManager); // TODO: Figure out how to use open properties dialog action here correctly // see http://wiki.eclipse.org/FAQ_How_do_I_open_a_Property_dialog%3F IAction action = new Action() { @Override public void run() { super.run(); ISelection sel = new StructuredSelection(new AnnotationTypeNode(editor, null)); PropertyPage page = new EditorAnnotationPropertyPage(); page.setElement(new AnnotationTypeNode(editor, null)); page.setTitle("Styles"); PreferenceManager mgr = new PreferenceManager(); IPreferenceNode node = new PreferenceNode("1", page); mgr.addToRoot(node); PropertyDialog dialog = new PropertyDialog(getSite().getShell(), mgr, sel); dialog.create(); dialog.setMessage(page.getTitle()); dialog.open(); } }; action.setImageDescriptor(CasEditorPlugin .getTaeImageDescriptor(Images.MODEL_PROCESSOR_FOLDER)); toolBarManager.add(action); }
Example #8
Source File: PropertyPageWrapper.java From birt with Eclipse Public License 1.0 | 4 votes |
public PropertyPageWrapper( PropertyPage propertyPage, DataSetDesignSession m_designSession ) { this.propertyPage = propertyPage; this.dataSetSession = m_designSession; }
Example #9
Source File: PropertyPageWrapper.java From birt with Eclipse Public License 1.0 | 4 votes |
public PropertyPageWrapper( PropertyPage propertyPage, DataSourceDesignSession m_designSession ) { this.propertyPage = propertyPage; this.dataSourceSession = m_designSession; }
Example #10
Source File: PropertyPageWrapper.java From birt with Eclipse Public License 1.0 | 4 votes |
public PropertyPage getPropertyPage( ) { return propertyPage; }