Examples of AddContentTypeMetaDefinitionDialog


Examples of de.innovationgate.eclipse.editors.design.dialogs.AddContentTypeMetaDefinitionDialog

    }

    protected void handleAddMetaDataDefinition() {
        WGContentTypeDefinition cTypeDef = retrieveCurrentContentTypeDefinition();
        if (cTypeDef != null) {
            AddContentTypeMetaDefinitionDialog dialog = new AddContentTypeMetaDefinitionDialog(Display.getCurrent().getActiveShell(), cTypeDef);
            dialog.setTitle("Content Type properties");
            int result = dialog.open();
            if (result == Dialog.OK) {
                if (dialog.getDefinitionsToAdd().size() > 0) {
                    List<WGMetaFieldDefinition> defs = dialog.getDefinitionsToAdd();
                    Collections.sort(defs, new Comparator<WGMetaFieldDefinition>() {

                        public int compare(WGMetaFieldDefinition o1, WGMetaFieldDefinition o2) {
                            return o1.getName().compareTo(o2.getName());
                        }
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.