public class IgnitionDesigner
extends com.jidesoft.action.DefaultDockableBarDockableHolder
| Modifier and Type | Class and Description |
|---|---|
protected class |
IgnitionDesigner.Handler
Handles registering for and delegating action and item events that the FPMIDesigner deals with, as well as
managing some UI elements like the menu and toolbars
|
protected static class |
IgnitionDesigner.LoadedModule
Holds a reference to each Module that is loaded up in the designer.
|
protected class |
IgnitionDesigner.LoadGWName |
protected class |
IgnitionDesigner.UpdateTask |
javax.swing.JFrame.AccessibleJFramejava.awt.Window.AccessibleAWTWindow, java.awt.Window.Type| Modifier and Type | Field and Description |
|---|---|
protected IgnitionDesigner.Handler |
handler
Handles general events for the Designer
|
protected java.util.List<IgnitionDesigner.LoadedModule> |
modules |
protected boolean |
notPublishedGlobalOnSave
Already saved without publishing the Global Project
|
protected PublishDialog.PublishPref |
publishPref
Users preference for publishing global project resources (shared scripts)
|
protected NamedQueryWorkspace |
queryWorkspace |
protected ScriptWorkspaceManager |
scriptWorkspaceManager |
protected StatusBar |
status
The Status bar component displayed at the bottom of the designer
|
_autoDispose, _contentContainer, _dockingManageraccessibleContext, EXIT_ON_CLOSE, rootPane, rootPaneCheckingEnabledCROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSORBOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT| Modifier and Type | Method and Description |
|---|---|
protected PublishDialog.PublishPref |
askGlobalPublishPreference()
Returns null if the dialog was closed with no preference chosen (a Cancel operation)
|
protected boolean |
canPublishProject(GlobalProps global,
User user) |
protected boolean |
canSaveProject(GlobalProps global,
User user) |
void |
closeFrames() |
ProjectExporter |
export(java.util.Collection<java.lang.Long> resourceIds,
ProjectScope scope)
Exports the current global or local project, with only the given resources selected
|
ProjectExporter |
export(ProjectScope scope)
Exports the current global or local project, selecting all resources by default
|
ConnectionHealthListener |
getConnectionHealthListener() |
DesignerContext |
getContext() |
javax.swing.Action |
getCopyAction() |
protected AuthenticatedUser |
getCurrentUser() |
javax.swing.Action |
getCutAction() |
javax.swing.Action |
getDeleteAction() |
protected DesignerLocalizationManager |
getDesignerLocalizationManager() |
PersistentProperties |
getDesignerPrefs() |
javax.swing.Action |
getExitAction() |
javax.swing.Action |
getExportAction() |
static javax.swing.JFrame |
getFrame()
Returns the Top level frame for the application.
|
DesignerLocalizationManager |
getLocalizationManager() |
protected LoggerEx |
getLogger() |
java.util.List<ModuleInfo> |
getModules() |
NavTreePanel |
getNavTreePanel() |
OPCBrowserPanel |
getOPCBrowserPanel() |
javax.swing.Action |
getPasteAction() |
PropertyEditorDialog |
getPropertyEditor() |
QueryBrowser |
getQueryBrowserPanel() |
StatusBar |
getStatusBar() |
TagBrowserPanel |
getTagBrowserPanel() |
TagEditor |
getTagEditor() |
WorkspaceManager |
getWorkspace() |
protected boolean |
handleSave(boolean saveAs,
java.lang.String newName,
boolean commitOnly,
boolean skipReOpen)
Serializes all open windows, and then saves project to gateway
|
protected void |
initComponents() |
protected void |
initLocalPrefs() |
void |
loadProject(long id,
boolean allowCancel)
Loads the project with the given ID.
|
void |
loadProject(Project project,
Project globalProject,
ProgressListener listener) |
void |
resetLayout() |
protected Project |
saveGlobalProjectToGateway(boolean publishGlobal) |
protected void |
setDesignerContext(DesignerContextImpl context) |
void |
setEditActionHandler(EditActionHandler eaHandler)
Sets the currently focused edit action handler.
|
protected void |
setScriptModuleEditor(ModuleEditor legacyEditor)
Sets an instance of the legacy (pre-7.7) script module editor
|
protected void |
showError(java.lang.Exception e) |
protected void |
showError(java.lang.String message) |
protected void |
showError(java.lang.String message,
java.lang.Exception e) |
void |
showGlobalScriptEditor() |
void |
showProjectPropertyEditor() |
void |
showQueryBrowser() |
void |
showScriptModuleEditor() |
void |
showScriptPlayground() |
void |
showScriptWorkspace(java.lang.Boolean global) |
void |
showTranslationManager() |
void |
startup()
Called by the DesignerStartupHook after the login has completed
|
protected void |
updateDesignerScriptManager() |
protected void |
updateScriptModules()
Called when pylib/ is updated
|
createContentContainer, createDockableBarManager, dispose, getDockableBarManager, getJMenuBar, getLayoutPersistence, initFramecreateDockingManager, getDockingManager, isAutoDispose, isContentPaneCheckingEnabled, setAutoDispose, setContentPaneCheckingEnabledaddImpl, createRootPane, frameInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, getLayeredPane, getRootPane, getTransferHandler, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, repaint, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setIconImage, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, setTransferHandler, updateaddNotify, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setBackground, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setOpacity, setResizable, setShape, setState, setTitle, setUndecoratedaddPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, getBackground, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getIconImages, getInputContext, getListeners, getLocale, getModalExclusionType, getMostRecentFocusOwner, getOpacity, getOwnedWindows, getOwner, getOwnerlessWindows, getShape, getToolkit, getType, getWarningString, getWindowFocusListeners, getWindowListeners, getWindows, getWindowStateListeners, hide, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isAutoRequestFocus, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isOpaque, isShowing, isValidateRoot, pack, paint, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setAutoRequestFocus, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImages, setLocation, setLocation, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, setType, setVisible, show, toBack, toFrontadd, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusDownCycle, validate, validateTreeaction, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resize, resize, revalidate, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setMaximumSize, setName, setPreferredSize, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycleprotected StatusBar status
protected java.util.List<IgnitionDesigner.LoadedModule> modules
protected IgnitionDesigner.Handler handler
protected ScriptWorkspaceManager scriptWorkspaceManager
protected NamedQueryWorkspace queryWorkspace
protected PublishDialog.PublishPref publishPref
protected boolean notPublishedGlobalOnSave
public static javax.swing.JFrame getFrame()
public ConnectionHealthListener getConnectionHealthListener()
protected LoggerEx getLogger()
public void startup()
protected void setDesignerContext(DesignerContextImpl context)
protected void initLocalPrefs()
protected void initComponents()
public void resetLayout()
public java.util.List<ModuleInfo> getModules()
public void loadProject(long id,
boolean allowCancel)
throws java.util.concurrent.CancellationException,
java.lang.Exception
java.util.concurrent.CancellationExceptionjava.lang.Exceptionpublic void loadProject(Project project, Project globalProject, ProgressListener listener)
public void closeFrames()
public DesignerContext getContext()
public void showScriptModuleEditor()
public void showScriptWorkspace(java.lang.Boolean global)
public void showScriptPlayground()
public void showQueryBrowser()
public void showTranslationManager()
public ProjectExporter export(ProjectScope scope)
public ProjectExporter export(java.util.Collection<java.lang.Long> resourceIds, ProjectScope scope)
public void showGlobalScriptEditor()
public void showProjectPropertyEditor()
public PropertyEditorDialog getPropertyEditor()
protected void showError(java.lang.String message)
protected boolean handleSave(boolean saveAs,
java.lang.String newName,
boolean commitOnly,
boolean skipReOpen)
throws java.lang.Exception
saveAs - if true, the project will be saved as another name. After the saveas is complete, a load will
occur on that new projectnewName - The new name if saveAs is truecommitOnly - if true, the project will go through the motions of saving, but not actually send the project
to the server.skipReOpen - if true, modules will not get notifyProjectSaveDone() called on their hooks. This is
to not waste effort when doing a save-on-close.java.lang.Exceptionprotected void showError(java.lang.Exception e)
protected void showError(java.lang.String message,
java.lang.Exception e)
protected Project saveGlobalProjectToGateway(boolean publishGlobal) throws GatewayException
GatewayExceptionprotected DesignerLocalizationManager getDesignerLocalizationManager()
protected boolean canSaveProject(GlobalProps global, User user)
protected boolean canPublishProject(GlobalProps global, User user)
protected AuthenticatedUser getCurrentUser() throws GatewayException
GatewayExceptionprotected void updateDesignerScriptManager()
protected void updateScriptModules()
public TagBrowserPanel getTagBrowserPanel()
public OPCBrowserPanel getOPCBrowserPanel()
public TagEditor getTagEditor()
public QueryBrowser getQueryBrowserPanel()
public StatusBar getStatusBar()
public javax.swing.Action getCutAction()
public javax.swing.Action getCopyAction()
public javax.swing.Action getPasteAction()
public javax.swing.Action getDeleteAction()
public javax.swing.Action getExportAction()
public javax.swing.Action getExitAction()
public PersistentProperties getDesignerPrefs()
public DesignerLocalizationManager getLocalizationManager()
public void setEditActionHandler(EditActionHandler eaHandler)
public WorkspaceManager getWorkspace()
public NavTreePanel getNavTreePanel()
protected PublishDialog.PublishPref askGlobalPublishPreference()
protected void setScriptModuleEditor(ModuleEditor legacyEditor)