java.lang.Object
de.grogra.pf.ui.Workbench
- All Implemented Interfaces:
RegistryContext
,Context
,ClipboardOwner
- Direct Known Subclasses:
ProjectWorkbench
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
static void
addToLastUsed
(Workbench wb, File file) void
beginStatus
(Object owner) chooseFileToSave
(String title, IOFlavor flavor, FileTypeItem.Filter selectedfilter) void
static void
clearGraph
(Item item, Object info, Context ctx) Fully clear the graph and reset the root nodevoid
clearProgress
(Object owner) void
clearStatusAndProgress
(Object owner) protected abstract void
static void
static Workbench
current()
static Workbench
current
(ThreadContext tc) static void
static void
void
void
export
(FilterSource src) void
export
(FilterSource src, MimeType mt, File file) static Workbench
get
(RegistryContext ctx) getChartPanel
(String chart, Map params) final Object
Determines the GUI component of this GUI context.getFile()
The file is the project local file ( xx.gs, or xx.gsz).final JobManager
final Logger
abstract Workbench
getName()
final Panel
getPanel()
Determines the panel of this GUI context.getProperty
(String key) protected void
final UIToolkit
final Workbench
Determines the workbench of this GUI context.void
void
It is done by the job manager when the workbench is startedprotected void
void
static boolean
isCopyEnabled
(Context ctx) static boolean
isCutEnabled
(Context ctx) static boolean
isDeleteEnabled
(Context ctx) boolean
final boolean
abstract boolean
return true if the workbench is currently selectedboolean
static void
void
logGUIInfo
(String msg) void
logGUIInfo
(String msg, Throwable thrown) void
void
void
abstract Workbench
open
(FilterSource fs, Map initParams) static void
abstract void
static void
openAsDemo
(Item item, Object info, Context ctx) void
openAsDemo
(Object info) static void
openRecent
(Item item, Object info, Context ctx) void
openRecent
(Object info) static void
readObject
(FilterSource src, IOFlavor flavor) readObject
(FileChooserResult src, IOFlavor flavor) static void
refreshJEdit
(Workbench wb, String fileName) Refreshes JEdit for the file fielName.static void
refreshJEdit
(String fileName) Refreshes JEdit for the file fielName.static void
refreshLastUsed
(Registry r, Workbench mwb) void
void
boolean
save
(boolean allowSaveAs) static void
boolean
static void
boolean
void
static void
void
protected void
setIgnoreIfModified
(boolean i) void
setIndeterminateProgress
(Object owner) final void
void
setModified
(boolean modified) void
void
setProgress
(Object owner, float progress) void
setProperty
(String key, Object value) void
void
void
setStatusClearProgress
(Object owner, String text) void
setStatusFinished
(Object owner) void
showAboutAppDialog
(PluginDescriptor plugin) void
boolean
showConfigurationDialog
(Selection properties) boolean
void
showViewerPanel
(String viewerId, String systemId, Map params) void
showViewerPanel
(String viewerId, URL url, Map params) abstract void
static void
startLocalFileSynchronization
(Item item, Object info, Context ctx) abstract void
static void
stopLocalFileSynchronization
(Item item, Object info, Context ctx) void
undo()
Undo the last action.static void
Undo the last derivation step.protected void
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface de.grogra.pf.registry.RegistryContext
getRegistry
-
Field Details
-
CLOSE
-
TIMER
-
CURRENT_DIRECTORY
- See Also:
-
PROJECT_DIRECTORY
- See Also:
-
LAST_FILES
-
START_AS_DEMO
- See Also:
-
START_AS_TEMPLATE
- See Also:
-
INITIAL_LAYOUT
- See Also:
-
SOFT_GUI_INFO
-
GUI_INFO
-
EXPORT_VISIBLE_LAYER
- See Also:
-
app
-
-
Constructor Details
-
Workbench
-
-
Method Details
-
initLogger
public void initLogger() -
close
-
current
-
get
-
current
-
setCurrent
-
runAsCurrent
-
isWorkbenchThread
public boolean isWorkbenchThread() -
initializeWindow
-
getMainWorkbench
-
getLogger
-
getJobManager
-
getToolkit
-
getWorkbench
Description copied from interface:Context
Determines the workbench of this GUI context.- Specified by:
getWorkbench
in interfaceContext
- Returns:
- this context's workbench
-
getPanel
Description copied from interface:Context
Determines the panel of this GUI context. -
getComponent
Description copied from interface:Context
Determines the GUI component of this GUI context.- Specified by:
getComponent
in interfaceContext
- Returns:
- this context's component
-
isHeadless
public boolean isHeadless() -
setProperty
-
getProperty
-
setName
-
getName
-
setModified
public final void setModified() -
isModified
public final boolean isModified() -
setModified
public void setModified(boolean modified) -
updateName
protected void updateName() -
undo
public void undo()Undo the last action. -
save
public boolean save(boolean allowSaveAs) -
saveAs
-
open
-
save
-
undo
Undo the last derivation step. -
saveAs
-
open
-
open
-
openRecent
-
openRecent
-
openAsDemo
-
openAsDemo
-
addToLastUsed
-
refreshLastUsed
-
setIgnoreIfModified
protected void setIgnoreIfModified(boolean i) -
ignoreIfModified
public void ignoreIfModified() -
setFile
-
save
-
export
-
export
-
getState
-
chooseFileToSave
public FileChooserResult chooseFileToSave(String title, IOFlavor flavor, FileTypeItem.Filter selectedfilter) - Parameters:
title
-flavor
-selectedfilter
- - the selected file filter type- Returns:
-
readObject
-
readObject
-
showAboutAppDialog
-
showAboutPluginDialog
-
showConfigurationDialog
-
showConfigurationDialog
-
getChartPanel
-
showViewerPanel
-
showViewerPanel
-
logInfo
-
logGUIInfo
-
logInfo
-
logGUIInfo
-
log
-
addStatusChangeListener
-
removeStatusChangeListener
-
beginStatus
-
setStatus
-
setStatus
-
setStatusClearProgress
-
setProgress
-
clearProgress
-
setIndeterminateProgress
-
clearStatusAndProgress
-
setStatusFinished
-
getStatus
-
getProgress
-
cut
-
isCutEnabled
-
copy
-
isCopyEnabled
-
paste
-
delete
-
delete
-
isDeleteEnabled
-
lostOwnership
- Specified by:
lostOwnership
in interfaceClipboardOwner
-
select
-
getFile
The file is the project local file ( xx.gs, or xx.gsz).- Returns:
-
refreshJEdit
Refreshes JEdit for the file fielName.- Parameters:
fileName
- , including suffix, e.g. "rgg", but without file system identifier ("pfs" is assumed)
-
refreshJEdit
Refreshes JEdit for the file fielName.- Parameters:
the
- current workbenchfileName
- , including suffix, e.g. "rgg", but without file system identifier ("pfs" is assumed)
-
startLocalFileSynchronization
-
stopLocalFileSynchronization
-
stopLocalFileSynchronization
public abstract void stopLocalFileSynchronization() -
startLocalFileSynchronization
public abstract void startLocalFileSynchronization() -
getApplication
-
initialize
public void initialize()It is done by the job manager when the workbench is started -
isSelected
public abstract boolean isSelected()return true if the workbench is currently selected- Returns:
-
clearGraph
Fully clear the graph and reset the root node -
clearGraph
public void clearGraph()
-