Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
OLAT CI-CD Testing Project
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Lars Oliver Dam
OLAT CI-CD Testing Project
Commits
5fa27141
Commit
5fa27141
authored
12 years ago
by
srosse
Browse files
Options
Downloads
Patches
Plain Diff
OO-291: better course launch in group controller
parent
b3c9d935
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/org/olat/group/ui/run/BusinessGroupMainRunController.java
+9
-24
9 additions, 24 deletions
...org/olat/group/ui/run/BusinessGroupMainRunController.java
with
9 additions
and
24 deletions
src/main/java/org/olat/group/ui/run/BusinessGroupMainRunController.java
+
9
−
24
View file @
5fa27141
...
@@ -28,7 +28,7 @@ package org.olat.group.ui.run;
...
@@ -28,7 +28,7 @@ package org.olat.group.ui.run;
import
java.util.Collections
;
import
java.util.Collections
;
import
java.util.List
;
import
java.util.List
;
import
org.olat.ControllerFactory
;
import
org.olat.
New
ControllerFactory
;
import
org.olat.admin.securitygroup.gui.GroupController
;
import
org.olat.admin.securitygroup.gui.GroupController
;
import
org.olat.basesecurity.BaseSecurity
;
import
org.olat.basesecurity.BaseSecurity
;
import
org.olat.basesecurity.BaseSecurityManager
;
import
org.olat.basesecurity.BaseSecurityManager
;
...
@@ -39,7 +39,6 @@ import org.olat.collaboration.CollaborationToolsFactory;
...
@@ -39,7 +39,6 @@ import org.olat.collaboration.CollaborationToolsFactory;
import
org.olat.core.CoreSpringFactory
;
import
org.olat.core.CoreSpringFactory
;
import
org.olat.core.commons.fullWebApp.LayoutMain3ColsController
;
import
org.olat.core.commons.fullWebApp.LayoutMain3ColsController
;
import
org.olat.core.gui.UserRequest
;
import
org.olat.core.gui.UserRequest
;
import
org.olat.core.gui.Windows
;
import
org.olat.core.gui.components.Component
;
import
org.olat.core.gui.components.Component
;
import
org.olat.core.gui.components.panel.Panel
;
import
org.olat.core.gui.components.panel.Panel
;
import
org.olat.core.gui.components.table.Table
;
import
org.olat.core.gui.components.table.Table
;
...
@@ -57,8 +56,6 @@ import org.olat.core.gui.control.Event;
...
@@ -57,8 +56,6 @@ import org.olat.core.gui.control.Event;
import
org.olat.core.gui.control.WindowControl
;
import
org.olat.core.gui.control.WindowControl
;
import
org.olat.core.gui.control.controller.MainLayoutBasicController
;
import
org.olat.core.gui.control.controller.MainLayoutBasicController
;
import
org.olat.core.gui.control.generic.dtabs.Activateable2
;
import
org.olat.core.gui.control.generic.dtabs.Activateable2
;
import
org.olat.core.gui.control.generic.dtabs.DTab
;
import
org.olat.core.gui.control.generic.dtabs.DTabs
;
import
org.olat.core.gui.control.generic.messages.MessageUIFactory
;
import
org.olat.core.gui.control.generic.messages.MessageUIFactory
;
import
org.olat.core.gui.translator.Translator
;
import
org.olat.core.gui.translator.Translator
;
import
org.olat.core.id.Identity
;
import
org.olat.core.id.Identity
;
...
@@ -483,28 +480,16 @@ public class BusinessGroupMainRunController extends MainLayoutBasicController im
...
@@ -483,28 +480,16 @@ public class BusinessGroupMainRunController extends MainLayoutBasicController im
String
actionid
=
te
.
getActionId
();
String
actionid
=
te
.
getActionId
();
int
rowid
=
te
.
getRowId
();
int
rowid
=
te
.
getRowId
();
RepositoryTableModel
repoTableModel
=
(
RepositoryTableModel
)
resourcesCtr
.
getTableDataModel
();
RepositoryTableModel
repoTableModel
=
(
RepositoryTableModel
)
resourcesCtr
.
getTableDataModel
();
RepositoryEntry
currentRepoEntry
=
(
RepositoryEntry
)
repoTableModel
.
getObject
(
rowid
);
if
(
RepositoryTableModel
.
TABLE_ACTION_SELECT_ENTRY
.
equals
(
actionid
)
if
(
actionid
.
equals
(
RepositoryTableModel
.
TABLE_ACTION_SELECT_LINK
))
{
||
RepositoryTableModel
.
TABLE_ACTION_SELECT_LINK
.
equals
(
actionid
))
{
RepositoryEntry
currentRepoEntry
=
(
RepositoryEntry
)
repoTableModel
.
getObject
(
rowid
);
OLATResource
ores
=
currentRepoEntry
.
getOlatResource
();
OLATResource
ores
=
currentRepoEntry
.
getOlatResource
();
if
(
ores
==
null
)
throw
new
AssertException
(
"repoEntry had no olatresource, repoKey = "
+
currentRepoEntry
.
getKey
());
if
(
ores
==
null
)
throw
new
AssertException
(
"repoEntry had no olatresource, repoKey = "
+
currentRepoEntry
.
getKey
());
addLoggingResourceable
(
LoggingResourceable
.
wrap
(
ores
,
OlatResourceableType
.
genRepoEntry
));
addLoggingResourceable
(
LoggingResourceable
.
wrap
(
ores
,
OlatResourceableType
.
genRepoEntry
));
String
title
=
currentRepoEntry
.
getDisplayname
();
String
businessPath
=
"[RepositoryEntry:"
+
currentRepoEntry
.
getKey
()
+
"]"
;
DTabs
dts
=
(
DTabs
)
Windows
.
getWindows
(
ureq
).
getWindow
(
ureq
).
getAttribute
(
"DTabs"
);
NewControllerFactory
.
getInstance
().
launch
(
businessPath
,
ureq
,
getWindowControl
());
//was brasato:: DTabs dts = getWindowControl().getDTabs();
DTab
dt
=
dts
.
getDTab
(
ores
);
if
(
dt
==
null
)
{
// does not yet exist -> create and add
//fxdiff BAKS-7 Resume function
dt
=
dts
.
createDTab
(
ores
,
currentRepoEntry
,
title
);
if
(
dt
==
null
)
return
;
Controller
ctrl
=
ControllerFactory
.
createLaunchController
(
ores
,
null
,
ureq
,
dt
.
getWindowControl
(),
true
);
dt
.
setController
(
ctrl
);
dts
.
addDTab
(
dt
);
}
dts
.
activate
(
ureq
,
dt
,
null
);
// null: do not activate to a certain
// view
}
}
}
}
}
else
if
(
source
==
sendToChooserForm
)
{
}
else
if
(
source
==
sendToChooserForm
)
{
...
@@ -1032,7 +1017,7 @@ public class BusinessGroupMainRunController extends MainLayoutBasicController im
...
@@ -1032,7 +1017,7 @@ public class BusinessGroupMainRunController extends MainLayoutBasicController im
listenTo
(
resourcesCtr
);
listenTo
(
resourcesCtr
);
resourcesVC
=
createVelocityContainer
(
"resources"
);
resourcesVC
=
createVelocityContainer
(
"resources"
);
repoTableModel
.
addColumnDescriptors
(
resourcesCtr
,
translate
(
"resources.launch"
),
fals
e
);
repoTableModel
.
addColumnDescriptors
(
resourcesCtr
,
null
,
tru
e
);
resourcesVC
.
put
(
"resources"
,
resourcesCtr
.
getInitialComponent
());
resourcesVC
.
put
(
"resources"
,
resourcesCtr
.
getInitialComponent
());
}
}
// add table model to table
// add table model to table
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment